Summary
Asserts that a condition is false. If the condition is true a warning is issued.
Syntax
public static void If(Func<bool> condition, Func<string> getExceptionMessage)
Parameters
Name | Type | Description |
---|---|---|
condition | Func |
A lambda that returns a Boolean |
getExceptionMessage | Func |
A function to build the message included with the Exception |
Return Value
Type | Description |
---|---|
void |