コード例 #1
0
        public void should_match_interface([Values(null, "token")] object token)
        {
            var target = new BaseTypeMatcher(Unit.OfType <IDisposable>(token));

            target.Matches(Unit.OfType <MemoryStream>(token)).Should().BeTrue();
        }
コード例 #2
0
        public void should_match_exact_type([Values(null, "token")] object token)
        {
            var target = new BaseTypeMatcher(Unit.OfType <int>(token));

            target.Matches(Unit.OfType <int>(token)).Should().BeTrue();
        }