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