Skip to content

Assert unit tests in natural language by specifying expectations.

License

Notifications You must be signed in to change notification settings

Testably/Testably.Expectations

Repository files navigation

Testably.Expectations
Nuget Build Codacy Badge Coverage Mutation testing badge

This library is used to assert unit tests in natural language by specifying expectations.

Examples

[Fact]
public void SomeMethod_ShouldThrowArgumentNullException()
{
  Expect.That(SomeMethod, Should.Throw.TypeOf<ArgumentNullException>()
  		.WhichMessage(Should.Be.EqualTo("Value cannot be null")).And()
  		.Which(p => p.ParamName, Should.Be.EqualTo("value")));
}

About

Assert unit tests in natural language by specifying expectations.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages