Ejemplo n.º 1
0
        public void IsInterface()
        {
            CodeTypeReference typeRef = new CodeTypeReference("IInterface");

            Assert.IsTrue(typeRef.IsInterface());

            typeRef = new CodeTypeReference(typeof(IDummyInterface));
            Assert.IsTrue(typeRef.IsInterface());

            typeRef = new CodeTypeReference(typeof(DummyInterface));
            Assert.IsTrue(typeRef.IsInterface());

            typeRef = new CodeTypeReference("Interface");
            Assert.IsFalse(typeRef.IsInterface());
        }