What is Fluent Assertions?

With Fluent Assertions, the assertions look beautiful, natural and most importantly, extremely readable -Girish

everyone.Should().Like(FluentAssertions, “because everything is so damn cool and readable”); - Jim Speaker and Bart Roozendaal

Fluent Assertions is a set of .NET extension methods that allow you to more naturally specify the expected outcome of unit tests. It offers a plethora of features:

The best assertion framework in the .NET realm. Go to the examples to see for yourself.

Installation

Install with NuGet NuGet

PM > Install-Package FluentAssertions

News

Fluent Assertions 5.1.1 was released on 11 February 2018

Changes:

  • {New} Add BeEquivalentTo to objects implementing IComparable - #763
  • {Fix} The Nuget package was not using the new icon yet
  • {Fix} Fix substitution of contextual tags - #754
  • {Fix} Add a target for .NET 4.7 that doesn’t require the ValueTuple dependency - #758
  • {Fix} Avoid a NullReferenceException in BeEquivalentTo while asserting the subject is a collection - #760

Powered by @jnyrup

View Release on GitHub

How to get help

Support us

As you can imagine, a lot of our private time is put into this wonderful project. Please support us by becoming a sponsor through Patreon.

Become a Patron!

I also welcome one-time donations through PayPal.

Community Extensions

There are a number of community maintained extension projects. The ones we are aware of a listed below. To add yours please fork the repository and send a pull request.

Special thanks

This project would not have been possible without the support of JetBrains. We thank them generously for providing us with the ReSharper licenses necessary to make us productive developers.

Resharper