コード例 #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));
 }