English 中文(简体)
BehaveN - passing argument with string type from txt scenario
原标题:
  • 时间:2009-12-12 11:26:43
  •  标签:
  • bdd

Playing around with BehaveN

This is my scenario

Given a new calculator
When adding "2"
Then the result is 1

Problem is with When part, it receives null as argument.

public void when_adding_x1(string x1)
{
    //x1 == null :(
    throw new PendingException();
}

Any ideas what s wrong?

最佳回答

Took source from git and it works now...

问题回答

暂无回答




相关问题
rake test finding tests. autotest not finding them

$ rake test $ rake test (in /Users/ethan/project/mtc/completestreets) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/...

A BDD example - why test "happy path" only?

I ve accidentally stumbled upon an old article by Luke Redpath that presents a very simple BDD example (very short and easy to follow even for non-Ruby programmers like me). I found the end result ...

Running NBehave plain text scenarious using TD.NET

Is this possible? Actually, any tips about running nbehave tests and integrating them with build server would be appreciated. Maybe there s a good alternatives?

Which BDD framework for JavaScript do you use?

I m developing large application using ExtJS framework. Because it grows too fast, I realized that this might be the time to start doing tests. I want to go for BDD technique, I found several BDD ...

热门标签