// readme

aweXpect

Assert unit tests in natural language using awesome expectations.

await That(message).IsEqualTo("It's a compliment");
Expected that message
is equal to "It's a compliment",
but it was "It's a complement", which differs at index 12:
           ↓ (actual)
  "…a complement"
  "…a compliment"
           ↑ (expected)

Installation

dotnet add package aweXpect

Add the following using directives: the first brings the static Expect class and lots of extension methods into scope, the second lets you write That(...) instead of Expect.That(...), as all examples do:

using aweXpect;
using static aweXpect.Expect;

See Getting started in the documentation for your first test, or the migration guide to move from another assertion library.

Features

Async everything

By using async assertions per default, we have a consistent API and other perks:

  • Complete async support, e.g. IAsyncEnumerable, HttpResponseMessage (via…