Пример #1
0
        public void No_match_if_inner_matcher_matches()
        {
            var isNot = new IsNotMatcher <string>(_always);

            var matches = isNot.Matches("test");

            Assert.That(matches, Is.EqualTo(false));
        }
Пример #2
0
        public void Description_adds_not()
        {
            var matcher     = Is.Not(_always);
            var description = new StringDescription();

            matcher.DescribeTo(description);

            Assert.That(description.ToString(), Is.EqualTo("not Always"));
        }
Пример #3
0
 public void Match_if_inner_matcher_does_not_match()
 {
     Assert.That("test", Is.Not("somethingelse"));
 }