public void MatchesNullReferences() { Matcher matcher = new NullMatcher(); Assert.IsTrue(matcher.Matches(null), "null"); Assert.IsFalse(matcher.Matches(new object()), "not null"); }
public void Matches_should_detect_null_nominal() { var subj = new NullMatcher(); Assert.False(subj.Matches("abc")); }
public void Matches_should_detect_nonnull_nominal() { var subj = new NullMatcher(); Assert.True(subj.Matches((object)null)); }