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
#Every
Matches if all elements in a collection do:
[Test]publicvoidEvery(){varcontainsA=Contains.String("a");varhasAs=newEvery(containsA);varcollection=new[]{"aaa","bba","cca"};Assert.That(collection,hasAs);// or alternativelyAssert.That(collection,Every.Item(Contains.String("a")));}