Shouldly
Search
K

Bool

ShouldBeTrue and ShouldBeFalse work on boolean values.

ShouldBeTrue

var myValue = false;
myValue.ShouldBeTrue();
Exception
myValue
should be
True
but was
False

ShouldBeFalse

var myValue = true;
myValue.ShouldBeFalse();
Exception
myValue
should be
False
but was
True
Last modified 5mo ago