Skip to content
Cyrille DUPUYDAUBY edited this page Feb 5, 2018 · 1 revision

IsAfter(reference)

Checks that the sut is after (or greater) than the reference value; fails otherwise.

// This check succeeds
Check.That(3).IsAfter(2);
// This check fails
Check.That(3).IsAfter(4);

IsBefore(reference)

Checks that the sut is before (or less) than the reference value; fails otherwise.

// This check succeeds
Check.That(3).IsBefore(4);
// This check fails
Check.That(3).IsBefore(3);