Fluent Tests is a framework for writing fluent tests. Instead of writing Assert.AreEqual you type Ensure.That().Are.Equal. This makes it easier to read test regardless if you've written them yourself or if someone else has written them.

You can also extend the framework with your own assertion handlers. This means that you can implement tests that is written in your own domain language, i.e. Ensure.That(company).Has.Address()

The assertions are written using generics so that the intellisense only will present the assertions that are available for a given object.

By using Fluent Tests with you'll write unit tests that is clean, free from noise and brings out your intentions. Fluent Tests works for both nUnit as well as MSTest.

Last edited Jun 20, 2011 at 9:32 PM by Arvander, version 7


No comments yet.