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()); }