For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contain

ShouldContain

var target = "Homer";
target.ShouldContain("Bart");

snippet source | anchor

Exception

target
    should contain
"Bart"
    but was actually
"Homer"

ShouldContainWithoutWhitespace

var target = "Homer Simpson";
target.ShouldContainWithoutWhitespace(" Bart Simpson ");

snippet source | anchor

Exception

target
    should contain without whitespace
" Bart Simpson "
    but was actually
"Homer Simpson"

ShouldNotContain

snippet source | anchor

Exception

ShouldContainAll

snippet source | anchor

Exception

ShouldContainAny

snippet source | anchor

Exception

ShouldNotContainAll

snippet source | anchor

Exception

ShouldNotContainAny

snippet source | anchor

Exception

Last updated