Contain
ShouldContain
var target = "Homer";
target.ShouldContain("Bart");Exception
target
should contain
"Bart"
but was actually
"Homer"ShouldContainWithoutWhitespace
var target = "Homer Simpson";
target.ShouldContainWithoutWhitespace(" Bart Simpson ");Exception
target
should contain without whitespace
" Bart Simpson "
but was actually
"Homer Simpson"ShouldNotContain
Exception
ShouldContainAll
Exception
ShouldContainAny
Exception
ShouldNotContainAll
Exception
ShouldNotContainAny
Exception
Last updated