Example #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.");
        }
        public void Both_returns_no_match_if_either_fails()
        {
            var matcher = Matches.Both(new CombinableMatcher <string>(_successfulMatcher).And(_failingMatcher));

            Assert.Equal(false, matcher.Matches(""));
        }
Example #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.");
        }
        public void Both_returns_match_if_both_succeed()
        {
            var matcher = Matches.Both(new CombinableMatcher <string>(_successfulMatcher).And(_successfulMatcher));

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