Warn.

Unless<TActual>(TActual, IResolveConstraint, Func<string>) Method

Summary

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

Syntax

public static void Unless<TActual>(TActual actual, IResolveConstraint expression, Func<string> getExceptionMessage)

Type Parameters

Name Description
TActual The Type being compared.

Parameters

Name Type Description
actual TActual The actual value to test
expression IResolveConstraint A Constraint expression to be applied
getExceptionMessage Func<string> A function to build the message included with the Exception

Return Value

Type Description
void