コード例 #1
0
 public void TypeEqualityIsRespected()
 {
     var parent = new Parent().GetChangeType();
     var child = new Child().GetChangeType();
     Assert.IsTrue(parent.IsA(typeof(Parent)));
     Assert.IsTrue(child.IsA(typeof(Child)));
 }
コード例 #2
0
 public void InheritanceIsRespected()
 {
     var parent = new Parent().GetChangeType();
     var child = new Child().GetChangeType();
     Assert.IsFalse(parent.IsA(typeof(Child)));
     Assert.IsTrue(child.IsA(typeof(Parent)));
 }