Esempio n. 1
0
 public void TestNotErroringWithFalse()
 {
     XAssert.That(() =>
     {
         var a = 1;
     }, IsNot.ErroringWith <System.IO.DirectoryNotFoundException>());
 }
Esempio n. 2
0
 public void TestNotErroringWithTrue()
 {
     XAssert.That(() =>
     {
         var a = 1;
     }, IsNot.ErroringWith <XAssertionFailedException>());
 }