public void IsNotOfType() { Assert2.IsNotOfType <object>(null); Console.WriteLine(Assert.ThrowsException <AssertFailedException>(() => Assert2.IsNotOfType <int>(1)).Message); Console.WriteLine(Assert.ThrowsException <AssertFailedException>(() => Assert2.IsNotOfType <object>(1)).Message); Assert2.IsNotOfType <long>(1); }