Example #1
0
        public void No_match_if_not_equal()
        {
            var isEqual = new IsEqualMatcher <string>("test");

            var matches = isEqual.Matches("somethingelse");

            Assert.False(matches);
        }
Example #2
0
        public void No_match_if_compared_to_null()
        {
            var isEqual = new IsEqualMatcher <string>("test");

            var matches = isEqual.Matches(null);

            Assert.False(matches);
            Assert.False(Is.EqualTo <string>(null).Matches("test"));
        }