예제 #1
0
        public void Matches_returns_false_for_an_closed_generic_type()
        {
            var sut = new IsOpenGenericTypeSpecification();

            Assert.That(() => sut.Matches(typeof(GenericClass <string>)), Is.False);
        }
예제 #2
0
        public void Matches_returns_false_for_a_non_generic_type()
        {
            var sut = new IsOpenGenericTypeSpecification();

            Assert.That(() => sut.Matches(typeof(NonGenericClass)), Is.False);
        }
예제 #3
0
        public void Matches_returns_true_for_an_open_generic_type()
        {
            var sut = new IsOpenGenericTypeSpecification();

            Assert.That(() => sut.Matches(typeof(GenericClass <>)), Is.True);
        }