You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grahamrhay edited this page Nov 11, 2010
·
1 revision
#StringContains
Matches if a string contains another string:
[Test]publicvoidStringContains(){varcontainsCat=new StringContains("cat");conststringactual="the cat sat on the mat";
Assert.That(actual, containsCat);// or alternatively
Assert.That(actual, Contains.String("cat"));}