示例#1
0
        public void Matches_should_fail_on_null_thunk()
        {
            var subj = new InstanceOfMatcher(typeof(string));

            try {
                subj.Matches(TestActual.Value((string)null));

                Assert.Fail("Expected to fail with AssertException -- can't match null");
            } catch (AssertVerificationException) {
                Assert.Pass();
            }
        }
示例#2
0
        public void Matches_should_detect_string_nominal()
        {
            var subj = new InstanceOfMatcher(typeof(string));

            Assert.True(subj.Matches("ab"));
        }