We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#IsCollectionContaining
Matches if any item in the collection meets the criteria:
[Test] public void IsCollectionContaining() { var matchesCat = Contains.String("cat"); var containsCat = new IsCollectionContaining(matchesCat); var actual = new[] { "the", "cat", "sat", "on", "the", "mat" }; Assert.That(actual, containsCat); // or alternatively Assert.That(new[] { "aaa", "bbb", "ccc" }, Has.Items("aaa", "bbb")); }