示例#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));
 }