예제 #1
0
 public void CantAssertNotEqualType()
 {
     NUnit.Framework.Assert.Throws <AssertionException>(
         () => Assert.IsExactType(new SuperClass(), typeof(SubClass)));
 }
예제 #2
0
 public void CanAssertIs()
 {
     Assert.IsExactType(new SuperClass(), typeof(SuperClass));
 }