Exemple #1
0
        public void Use_mismatch_description_when_not_null()
        {
            var matcher     = new TestNonNullMatcher(s => false);
            var description = new StringDescription();

            matcher.DescribeMismatch("", description);

            Assert.Equal("TestNonNullMatcher.DescribeMismatchSafely", description.ToString());
        }
Exemple #2
0
        public void Use_base_mismatch_description_when_null()
        {
            var matcher     = new TestNonNullMatcher(s => true);
            var description = new StringDescription();

            matcher.DescribeMismatch(null, description);

            Assert.Equal("was null", description.ToString());
        }