Warn
Provides static methods to express conditions
that must be met for the test to succeed. If
any test fails, a warning is issued.
public Warn()
DO NOT USE!
The Equals method throws an InvalidOperationException. This is done
to make sure there is no mistake by calling this function.
Apply a constraint to an actual value, succeeding if the constraint
fails and issuing a warning on success.
public static void If<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, string message, object[] args)
Apply a constraint to an actual value, succeeding if the constraint
fails and issuing a warning on success.
public static void If<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, Func<string> getExceptionMessage)
Apply a constraint to an actual value, succeeding if the constraint
fails and issuing a warning on failure.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is false. If the condition is true a warning is issued.
Asserts that a condition is false. If the condition is true a warning is issued.
Asserts that a condition is false. If the condition is true a warning is issued.
Apply a constraint to an actual value, succeeding if the constraint
fails and issuing a warning if it succeeds.
public static void If<TActual>(TActual actual, IResolveConstraint expression, string message, object[] args)
Apply a constraint to an actual value, succeeding if the constraint
fails and issuing a warning if it succeeds.
public static void If<TActual>(TActual actual, IResolveConstraint expression, Func<string> getExceptionMessage)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
DO NOT USE!
The ReferenceEquals method throws an InvalidOperationException. This is done
to make sure there is no mistake by calling this function.
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
public static void Unless<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, string message, object[] args)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
public static void Unless<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, Func<string> getExceptionMessage)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that a condition is true. If the condition is false, a warning is issued.
Asserts that the code represented by a delegate throws an exception
that satisfies the constraint provided.
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
public static void Unless<TActual>(TActual actual, IResolveConstraint expression, string message, object[] args)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.
public static void Unless<TActual>(TActual actual, IResolveConstraint expression, Func<string> getExceptionMessage)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and issuing a warning on failure.