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