Warn.

If<TActual>(ActualValueDelegate<TActual>, IResolveConstraint, string, object[]) Method

Summary

Apply a constraint to an actual value, succeeding if the constraint fails and issuing a warning on success.
Namespace
TCLite
Containing Type
Warn

Syntax

public static void If<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, string message = null, params object[] args)

Type Parameters

Name Description
TActual The Type being compared.

Parameters

Name Type Description
del ActualValueDelegate<TActual> An ActualValueDelegate returning the value to be tested
expr IResolveConstraint A Constraint expression to be applied
message string The message that will be displayed on failure
args object[] Arguments to be used in formatting the message

Return Value

Type Description
void