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