Exemple #1
0
 public static Exception ShouldBeThrownBy(this Type type, TestDelegate action)
 {
     return(Assert.Throws(type, action));
 }
Exemple #2
0
 void ShouldFail(TestDelegate code) => Assert.Throws <AssertionException>(code);
Exemple #3
0
 public static Exception ShouldBeThrownBy(this Type exceptionType, TestDelegate testDelegate)
 {
     return(Assert.Throws(exceptionType, testDelegate));
 }