var target = "Homer";target.ShouldContain("Bart");
Exception
targetshould contain (case insensitive comparison)"Bart"but was actually"Homer"
var target = "Homer Simpson";target.ShouldContainWithoutWhitespace(" Bart Simpson ");
Exception
targetshould contain without whitespace" Bart Simpson "but was actually"Homer Simpson"
var target = "Homer";target.ShouldNotContain("Home");
Exception
targetshould not contain (case insensitive comparison)"Home"but was actually"Homer"