NExpect

An assertions framework for .NET with a BDD-like feel, inspired by Chai and Jasmine, designed to be user-extensible

View on GitHub

#Fluent assertions with NExpect

Quick Reference

Why

The why of NExpect is covered in detail in a blog post. Basically, after working with Javascript assertion frameworks (Chai and Jasmine), I wasn’t satisfied with NUnit assertions. I wanted something:

The result is NExpect, which I’m quite happy with, and which has proven (to me at least) that there are some benefits in tacking an assertions framework from a user-first, expression-first perspective.

How to get it

NExpect should be available via Nuget. In addition, there are some add-on packages which provide out-of-the-box matchers for specialised environments:

How to use it

There are a few introductory blog posts about usage: