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 9, 2010
·
1 revision
#AllOf
Matches if all of its sub-matchers do:
[Test]publicvoidAllOf(){varcontainsCat= Contains.String("cat");varcontainsMat= Contains.String("mat");varmatchesAllOf=new AllOf(new[]{ containsCat, containsMat });conststringactual="the cat sat on the mat";
Assert.That(actual, matchesAllOf);// or alternatively
Assert.That(actual, Matches.AllOf(containsCat, containsMat));}