Warn.

If(Func<bool>, string, object[]) Method

Summary

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

Syntax

public static void If(Func<bool> condition, string message = null, params object[] args)

Parameters

Name Type Description
condition Func<bool> A lambda that returns a Boolean
message string The message to display if the condition is true
args object[] Arguments to be used in formatting the message

Return Value

Type Description
void