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
#IsCollectionContaining
Matches if any item in the collection meets the criteria:
[Test]publicvoidIsCollectionContaining(){varmatchesCat=Contains.String("cat");varcontainsCat=newIsCollectionContaining(matchesCat);varactual=new[]{"the","cat","sat","on","the","mat"};Assert.That(actual,containsCat);// or alternativelyAssert.That(new[]{"aaa","bbb","ccc"},Has.Items("aaa","bbb"));}