Пример #1
0
        public void MatchesNullReferences()
        {
            Matcher matcher = new NullMatcher();

            Assert.IsTrue(matcher.Matches(null), "null");
            Assert.IsFalse(matcher.Matches(new object()), "not null");
        }
Пример #2
0
        public void Matches_should_detect_null_nominal()
        {
            var subj = new NullMatcher();

            Assert.False(subj.Matches("abc"));
        }
Пример #3
0
        public void Matches_should_detect_nonnull_nominal()
        {
            var subj = new NullMatcher();

            Assert.True(subj.Matches((object)null));
        }