Example #1
0
 public void AssertHelper_WrongExceptionType()
 {
     ExAssert.Throws <Exception>
     (
         () => (new TestClass()).Run(),
         "This is a test."
     );
 }
Example #2
0
 public void AssertHelper_Succeed()
 {
     ExAssert.Throws <ArgumentException>
     (
         () => (new TestClass()).Run(),
         "This is a test."
     );
 }
Example #3
0
 public void AssertHelper_WrongMessage()
 {
     ExAssert.Throws <ArgumentException>
     (
         () => (new TestClass()).Run(),
         "This is aa test."
     );
 }