コード例 #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"));
 }