Exemplo n.º 1
0
 public static void UnreachableCode <TException>(Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.UnreachableCode <TException>(getErrorMessage);
 }
Exemplo n.º 2
0
 public static void IsTrue(bool isValid, Func <string> getErrorMessage = null)
 {
     CustomAssertionValidation.IsTrue <PreconditionViolationException>(isValid, getErrorMessage);
 }
Exemplo n.º 3
0
 public static void NotSupported <TException>([CallerMemberName] string functionName = null, Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.NotSupported <TException>(functionName, getErrorMessage);
 }
Exemplo n.º 4
0
 public static void NotSupported(string functionName, Func <string> getErrorMessage = null)
 {
     CustomAssertionValidation.NotSupported <NotSupportedException>(functionName, getErrorMessage);
 }
Exemplo n.º 5
0
 public static void NotDisposed <TException>(bool isDisposed, string objectName, Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.NotDisposed <TException>(isDisposed, objectName, getErrorMessage);
 }
Exemplo n.º 6
0
 public static void IsTrue <TException>(bool isValid, Func <string> getErrorMessage = null)
     where TException : Exception
 {
     CustomAssertionValidation.IsTrue <TException>(isValid, getErrorMessage);
 }
Exemplo n.º 7
0
 public static void UnreachableCode(Func <string> getErrorMessage = null)
 {
     CustomAssertionValidation.UnreachableCode <InvalidOperationException>(getErrorMessage);
 }