예제 #1
0
        public void Matches_should_detect_empty_nominal_func()
        {
            var subj = new SatisfyAllMatcher <int[]>(
                Matchers.BeEmpty(),
                Matchers.HaveCount(1)
                );
            var val = subj.Matches(TestActual.Value(new int[0]));

            Assert.False(val);
        }
예제 #2
0
        public void Matches_should_apply_all_nominal()
        {
            var subj = new SatisfyAllMatcher <int[]>(
                Matchers.BeEmpty(),
                Matchers.HaveCount(0)
                );
            var val = subj.Matches(TestActual.Value(new int[0]));

            Assert.True(val);
        }