Esempio n. 1
0
        public void Should_Check_NonGenericType_Correctly()
        {
            var instance = new TestClass2();
            var type     = instance.GetType();

            Assert.IsFalse(type.IsAssignableToGenericType(typeof(ITestInterface1 <>)));
            Assert.IsFalse(type.IsAssignableToGenericType(typeof(ITestInterface2 <,>)));
            Assert.IsFalse(type.IsAssignableToGenericType(typeof(AbstractTestBase <>)));
            Assert.IsFalse(type.IsAssignableToGenericType(typeof(AbstractTestBase <>)));
        }