Exemple #1
0
        public void Matches_should_detect_suffix_failure()
        {
            var subj = new EndWithMatcher <string>(new [] { "z" });

            Assert.False(subj.Matches(new [] { "a", "b", "c" }));
        }
Exemple #2
0
        public void Matches_should_detect_suffix_nominal()
        {
            var subj = new EndWithMatcher <string>(new [] { "c" });

            Assert.True(subj.Matches(new [] { "a", "b", "c" }));
        }