Пример #1
0
        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"
            })));
        }
Пример #2
0
        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
                );
        }