Skip to content

LsquaredTechnologies/ExpectAssertions

Repository files navigation

Expect Assertion

Build Status

This is another assertion library which integrate to any testing framework like xUnit, NUnit, or MSTest (v1 or v2).

Documentation

Usage

In order to verify your assertion, you simply need to use Expect.That() with the the you want to check and intellisense will guide you with fluent methods:

// Assert
Expect.That(actualValue).IsEqualTo(expectedValue);

You can chain multiple assertions with the And() method to have a nice real english sentence.

// Assert
Expect.That(actualValue).Matches(expectedPattern).And().DoesNotMatch(nonExpectedPattern);

Contribute

Do not hesitate to contact me if you want new features.

About

Another assertion library with fluent syntax

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages