Warn.

If(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 If(bool condition, Func<string> getExceptionMessage)

Parameters

Name Type Description
condition bool The evaluated condition
getExceptionMessage Func<string> A function to build the message included with the Exception

Return Value

Type Description
void