Assert unit tests in natural language using awesome expectations.
https://docs.testably.org/aweXpect β HEALTH ? 98 / Healthy
Assert unit tests in natural language using awesome expectations.
https://docs.testably.org/aweXpect β// readme
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)
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.
By using async assertions per default, we have a consistent API and other perks:
IAsyncEnumerable, HttpResponseMessage (viaβ¦