コード例 #1
0
 public static Exception ShouldBeThrownBy(this Type type, TestDelegate action)
 {
     return(Assert.Throws(type, action));
 }
コード例 #2
0
ファイル: PopupTests.cs プロジェクト: zauberzeug/quicktest
 void ShouldFail(TestDelegate code) => Assert.Throws <AssertionException>(code);
コード例 #3
0
 public static Exception ShouldBeThrownBy(this Type exceptionType, TestDelegate testDelegate)
 {
     return(Assert.Throws(exceptionType, testDelegate));
 }