Warn.

Unless(Func<bool>, Func<string>) Method

Summary

Asserts that a condition is true. If the condition is false, a warning is issued.
Namespace
TCLite
Containing Type
Warn

Syntax

public static void Unless(Func<bool> condition, Func<string> getExceptionMessage)

Parameters

Name Type Description
condition Func<bool> A lambda that returns a Boolean
getExceptionMessage Func<string> A function to build the message included with the Exception

Return Value

Type Description
void