コード例 #1
0
ファイル: Requires.cs プロジェクト: r12f/Confidence
 public static void UnreachableCode <TException>(Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.UnreachableCode <TException>(getErrorMessage);
 }
コード例 #2
0
ファイル: Requires.cs プロジェクト: r12f/Confidence
 public static void IsTrue(bool isValid, Func <string> getErrorMessage = null)
 {
     CustomAssertionValidation.IsTrue <PreconditionViolationException>(isValid, getErrorMessage);
 }
コード例 #3
0
ファイル: Requires.cs プロジェクト: r12f/Confidence
 public static void NotSupported <TException>([CallerMemberName] string functionName = null, Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.NotSupported <TException>(functionName, getErrorMessage);
 }
コード例 #4
0
ファイル: Requires.cs プロジェクト: r12f/Confidence
 public static void NotSupported(string functionName, Func <string> getErrorMessage = null)
 {
     CustomAssertionValidation.NotSupported <NotSupportedException>(functionName, getErrorMessage);
 }
コード例 #5
0
ファイル: Requires.cs プロジェクト: r12f/Confidence
 public static void NotDisposed <TException>(bool isDisposed, string objectName, Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.NotDisposed <TException>(isDisposed, objectName, getErrorMessage);
 }
コード例 #6
0
ファイル: Requires.cs プロジェクト: r12f/Confidence
 public static void IsTrue <TException>(bool isValid, Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.IsTrue <TException>(isValid, getErrorMessage);
 }
コード例 #7
0
 public static void UnreachableCode(Func <string> getErrorMessage = null)
 {
     CustomAssertionValidation.UnreachableCode <InvalidOperationException>(getErrorMessage);
 }