specr from Michael Erasmus is inspired by Ruby’s rspec and aims to add a drop-in BDD framework to your .NET unit tests. specr leverages .NET 4.0 features and brings rspec’s vocabulary into C# idioms:

var foo = "foo";

foo.Should().BeA<string>();
foo.Should().NotBeAn<int>()
foo.Should().Equal("foo"); 
foo.Should().NotEqual("bar");

There are more examples in the README.

[Source on GitHub]


Have comments? Send a tweet to @TheChangelog on Twitter.

Subscribe to The Changelog Weekly – our weekly email covering everything that hits our open source radar.