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