It recently came to my attention (when dog-fooding the new version), that I wasn’t able to make any assertions!
Using NBehave without a unit testing framework means we need some other way of checking our results. So I’ve included the Should framework to complete the testing story.
I’m finding it quite a nice framework to use, and its very feature complete. I’ve ILMerged it into the main NBehave.Narrator.Framework assembly, so you don’t need to pull in any references!
Personally I prefer the Fluent API which is quite friendly to intelli-sense, and readability. Here’s an example for a test I’m writing now:
[Then("I should get the available sessions")]
public void ThenIShouldGetTheAvailableSessions()
{
sessions.Count().Should().Be.GreaterThan(0);
}
You can grab the new version here.