Ejemplo n.º 1
0
 public static void Assure([AssertionCondition(AssertionConditionType.IS_TRUE)] bool condition, string message = "", params object[] parameters)
 {
     DbC.Assure(condition, new InvalidOperationException(string.Format(message, parameters)));
 }
Ejemplo n.º 2
0
 public static void Assure([AssertionCondition(AssertionConditionType.IS_TRUE)] Func <bool> condition, Exception exception)
 {
     DbC.Assure(condition(), exception);
 }
Ejemplo n.º 3
0
 public static void Assure <T>(T value, [AssertionCondition(AssertionConditionType.IS_TRUE)] Predicate <T> condition, Exception exception)
 {
     DbC.Assure(() => condition(value), exception);
 }
Ejemplo n.º 4
0
 public static void Assure <T>(T value, [AssertionCondition(AssertionConditionType.IS_TRUE)] Predicate <T> condition, string message = "", params object[] parameters)
 {
     DbC.Assure(() => condition(value), message, parameters);
 }
Ejemplo n.º 5
0
 public static T DbC_Assure <T>(this T value, [AssertionCondition(AssertionConditionType.IS_TRUE)] Predicate <T> condition, Exception exception)
 {
     DbC.Assure(value, condition, exception);
     return(value);
 }
Ejemplo n.º 6
0
 public static T DbC_Assure <T>(this T value, [AssertionCondition(AssertionConditionType.IS_TRUE)] Predicate <T> condition, string message, params object[] parameters)
 {
     DbC.Assure(value, condition, message, parameters);
     return(value);
 }