public void Matches_should_detect_contra_nominal() { var subj = Matchers.And(Matchers.BeEmpty(), Matchers.HaveCount(0)); Assert.False(subj.Matches(TestActual.Value(new List <string> { "A", "B" }))); }
public void For_supports_the_And_and_Or_matchers() { Assert.Equal( "spec.and", TestMatcherName.For(Matchers.And(Matchers.BeEmpty(), Matchers.BeEmpty())).Name ); Assert.Equal( "spec.or", TestMatcherName.For(Matchers.Or(Matchers.BeEmpty(), Matchers.BeEmpty())).Name ); }