Summary
Asserts that a condition is true. If the condition is false, a warning is issued.
Syntax
public static void Unless(Func<bool> condition, string message = null, params object[] args)
Parameters
| Name | Type | Description |
|---|---|---|
| condition | Func |
A lambda that returns a Boolean |
| message | string | The message to display if the condition is false |
| args | object[] | Arguments to be used in formatting the message |
Return Value
| Type | Description |
|---|---|
| void |
