Ejemplo n.º 1
0
        public void Both_returns_no_match_if_either_fails()
        {
            var matcher = Matches.Both(new CombinableMatcher <string>(successfulMatcher).And(failingMatcher));

            Assert.AreEqual(false, matcher.Matches(""), "Expected no match if either matcher fails.");
        }
Ejemplo n.º 2
0
        public void Both_returns_no_match_if_either_fails()
        {
            var matcher = Matches.Both(new CombinableMatcher <string>(_successfulMatcher).And(_failingMatcher));

            Assert.Equal(false, matcher.Matches(""));
        }
Ejemplo n.º 3
0
        public void Both_returns_match_if_both_succeed()
        {
            var matcher = Matches.Both(new CombinableMatcher <string>(successfulMatcher).And(successfulMatcher));

            Assert.AreEqual(true, matcher.Matches(""), "Expected a match if both matchers succeed.");
        }
Ejemplo n.º 4
0
        public void Both_returns_match_if_both_succeed()
        {
            var matcher = Matches.Both(new CombinableMatcher <string>(_successfulMatcher).And(_successfulMatcher));

            Assert.Equal(true, matcher.Matches(""));
        }