ShouldBeTrue and ShouldBeFalse work on boolean values.
ShouldBeTrue
ShouldBeFalse
var myValue = false; myValue.ShouldBeTrue();
snippet source | anchor
Exception
myValue should be True but was False
var myValue = true; myValue.ShouldBeFalse();
myValue should be False but was True
Last updated 1 year ago