Bool

ShouldBeTrue and ShouldBeFalse work on boolean values.

ShouldBeTrue

var myValue = false;
myValue.ShouldBeTrue();

snippet source | anchor

Exception

myValue
    should be
True
    but was
False

ShouldBeFalse

var myValue = true;
myValue.ShouldBeFalse();

snippet source | anchor

Exception

myValue
    should be
False
    but was
True

Last updated