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