Build issue?

Nov 10, 2008 at 3:54 PM
I am using the strong named release build included with the download as a referenced assembly in my project. I also have NUnit v2.4.6.0 referenced in my project. If I try to use the NBehave.Spec.NUnit extension methods, such as:

(expectedCount) => myValue.ShouldEqual(expectedCount))

I get the following exception:

System.TypeLoadException: Could not load type 'NUnit.Framework.SyntaxHelpers.Is' from assembly 'nunit.framework, Version=, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'.

However, so long as I use the NUnit Assert.That syntax, it works fine. So this works:

(expectedCount) => Assert.That(myValue, Is.EqualTo(expectedCount)))

This isn't a huge issue, but since you provided the extension methods and they are more concise than using the Assert.That syntax, it would be nice to be able to use them.

Nov 11, 2008 at 8:10 PM
Are you sure you havent built it from the trunk? I think the .ShouldEqual(expected) syntax was born after the 0.3 release.
Anyway, if you get the latest bits from the trunk NBehave uses NUnit 2.4.8, if you dont mind bumping up your own version to that version.