Tuesday, February 17, 2009

NUnit + Extension Methods + NBehave.Spec.NUnit = Smile

I used a tiny bit of NBehave today and it made me smile. I used the extension methods in NBehave.Spec.NUnit so my NUnit tests can be a little more Englishy.
Instead of

Assert.IsTrue(sum.Equals(13));

I can write

sum.ShouldEqual(13);

which just gives me a warm, almost Rubyisque feeling, deep inside.

1 comment:

Anonymous said...

yep its cool stuff i have some more in depth examples here :
http://neilmartinagile.wordpress.com/2009/03/06/setting-up-for-a-new-personal-development-project/