Beispiel #1
0
 public static void If <TActual>(TActual actual, IResolveConstraint expression)
 {
     Warn.If(actual, expression, null, null);
 }
Beispiel #2
0
 public static void If(Func <bool> condition)
 {
     Warn.If(condition.Invoke(), Is.True, null, null);
 }
Beispiel #3
0
 public static void If(Func <bool> condition, Func <string?> getExceptionMessage)
 {
     Warn.If(condition.Invoke(), Is.True, getExceptionMessage);
 }
Beispiel #4
0
 public static void If(Func <bool> condition, string?message, params object?[]?args)
 {
     Warn.If(condition.Invoke(), Is.True, message, args);
 }
Beispiel #5
0
 public static void If(bool condition, Func <string?> getExceptionMessage)
 {
     Warn.If(condition, Is.True, getExceptionMessage);
 }
Beispiel #6
0
 public static void If(bool condition)
 {
     Warn.If(condition, Is.True, null, null);
 }
Beispiel #7
0
 public static void If(bool condition, string?message, params object?[]?args)
 {
     Warn.If(condition, Is.True, message, args);
 }
Beispiel #8
0
 public static void If <TActual>(ActualValueDelegate <TActual> del, IResolveConstraint expr)
 {
     Warn.If(del, expr.Resolve(), null, null);
 }