Assert.

That<T>(T, IResolveConstraint, string, object[]) Method

Summary

Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure.
Namespace
TCLite
Containing Type
Assert

Syntax

public static void That<T>(T actual, IResolveConstraint expression, string message = null, params object[] args)

Type Parameters

Name Description
T

Parameters

Name Type Description
actual T The actual value to test
expression 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