示例#1
0
 public void CantAssertNotAssignable2()
 {
     NUnit.Framework.Assert.Throws <AssertionException>(
         () => Assert.IsAssignable(new SuperClass(), typeof(SubClass)));
 }
示例#2
0
 public void CanAssertAssignable()
 {
     Assert.IsAssignable(new SubClass(), typeof(SuperClass));
 }