Summary
Asserts that a condition is true. If the condition is false, a warning is issued.
Syntax
public static void Unless(bool condition, string message = null, params object[] args)
Parameters
Name | Type | Description |
---|---|---|
condition | bool | The evaluated condition |
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 |