コード例 #1
0
 public void ReflectionUtilIsClassOfTypeTest()
 {
     ReflectionTestData data = new ReflectionTestData();
       Assert.IsTrue(ReflectionUtil.IsClassOfType(data.GetType(), typeof(ReflectionTestData)));
       Assert.IsTrue(ReflectionUtil.IsClassOfType(data.GetType(), typeof(ITestLookupData)));
       Assert.IsFalse(ReflectionUtil.IsClassOfType(data.GetType(), typeof(int)));
 }