SubstringConstraint - jnm2/nunit-docs-wiki GitHub Wiki
SubstringConstraint tests for a substring.
SubstringConstraint(string expected)
Does.Contain(string expected)
...IgnoreCase
string phrase = "Make your tests fail before passing!"
Assert.That(phrase, Does.Contain("tests fail"));
Assert.That(phrase, Does.Not.Contain("tests pass"));
Assert.That(phrase, Does.Contain("make").IgnoreCase);