public void Has_items_with_matchers() { var aaaMatcher = new CustomMatcher <string>("aaa", s => s == "aaa"); var bbbMatcher = new CustomMatcher <string>("bbb", s => s == "bbb"); Assert.That(new[] { "aaa", "bbb", "ccc" }, Has.Items <string>(aaaMatcher, bbbMatcher)); }
public void Has_items_with_matchers() { Assert.That(new[] { "aaa", "bbb", "ccc" }, Has.Items(Is.EqualTo("aaa"), Is.EqualTo("bbb"))); }
public void Has_items() { Assert.That(new[] { "aaa", "bbb", "ccc" }, Has.Items("aaa", "bbb")); }