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

Checks on value

IsTrue()

Checks that the sut is true. Fails if false.

// this check succeeds
Check.That(true).IsTrue();
// this check fails
Check.That(false).IsTrue);

IsFalse()

Checks that the sut is false. Fails if true.

// this check succeeds
Check.That(false).IsFalse();
// this check fails
Check.That(true).IsFalse);