Provides methods for asserting conditions. Throws an AssertException when a condition is not met. Methods are only invoked in DEBUG builds unless otherwise specified.
More...
|
| static void | Always ([DoesNotReturnIf(false)] bool condition, [CallerArgumentExpression("condition")] string error=null) |
| | Throws an AssertException with a message if condition is false, even in non-DEBUG builds. More...
|
| |
| static void | Always< T0 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0) |
| | Throws an AssertException with a message if condition is false, even in non-DEBUG builds. More...
|
| |
| static void | Always< T0 > ([DoesNotReturnIf(false)] bool condition, T0 arg0) |
| | Throws an AssertException with a message if the condition is false, even in non-DEBUG builds. The message is composed from additional arguments. More...
|
| |
| static void | Always< T0, T1 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0, T1 arg1) |
| | Throws an AssertException with a message if condition is false, even in non-DEBUG builds. More...
|
| |
| static void | Always< T0, T1 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1) |
| | Throws an AssertException with a message if the condition is false, even in non-DEBUG builds. The message is composed from additional arguments. More...
|
| |
| static void | Always< T0, T1, T2 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0, T1 arg1, T2 arg2) |
| | Throws an AssertException with a message if condition is false, even in non-DEBUG builds. More...
|
| |
| static void | Always< T0, T1, T2 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1, T2 arg2) |
| | Throws an AssertException with a message if the condition is false, even in non-DEBUG builds. The message is composed from additional arguments. More...
|
| |
| static void | Always< T0, T1, T2, T3 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0, T1 arg1, T2 arg2, T3 arg3) |
| | Throws an AssertException with a message if condition is false, even in non-DEBUG builds. More...
|
| |
| static void | Always< T0, T1, T2, T3 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1, T2 arg2, T3 arg3) |
| | Throws an AssertException with a message if the condition is false, even in non-DEBUG builds. The message is composed from additional arguments. More...
|
| |
| static void | AlwaysFail () |
| | Throws an AssertException, even in non-DEBUG builds. More...
|
| |
| static void | AlwaysFail (object error) |
| | Throws an AssertException with a message, even in non-DEBUG builds. More...
|
| |
| static void | AlwaysFail (string error) |
| | Throws an AssertException with a message, even in non-DEBUG builds. More...
|
| |
| static void | AlwaysFail< T > (T error) |
| | Throws an AssertException with a message, even in non-DEBUG builds. More...
|
| |
| static void | Check ([DoesNotReturnIf(false)] bool condition, [CallerArgumentExpression("condition")] string error=null) |
| | Throws an AssertException with a message if the condition is false More...
|
| |
| static void | Check (object condition, [CallerArgumentExpression("condition")] string error=null) |
| | Throws an AssertException if the condition is null More...
|
| |
| static unsafe void | Check (void *condition, [CallerArgumentExpression("condition")] string error=null) |
| | Throws an AssertException if the condition is null More...
|
| |
| static void | Check< T0 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0) |
| | Throws an AssertException with a message if the condition is false More...
|
| |
| static void | Check< T0 > ([DoesNotReturnIf(false)] bool condition, T0 arg0) |
| | Throws an AssertException with a message if the condition is false. The message is composed from additional arguments. More...
|
| |
| static void | Check< T0, T1 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0, T1 arg1) |
| | Throws an AssertException with a message if the condition is false More...
|
| |
| static void | Check< T0, T1 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1) |
| | Throws an AssertException with a message if the condition is false. The message is composed from additional arguments. More...
|
| |
| static void | Check< T0, T1, T2 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0, T1 arg1, T2 arg2) |
| | Throws an AssertException with a message if the condition is false More...
|
| |
| static void | Check< T0, T1, T2 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1, T2 arg2) |
| | Throws an AssertException with a message if the condition is false. The message is composed from additional arguments. More...
|
| |
| static void | Check< T0, T1, T2, T3 > ([DoesNotReturnIf(false)] bool condition, string format, T0 arg0, T1 arg1, T2 arg2, T3 arg3) |
| | Throws an AssertException with a message if the condition is false More...
|
| |
| static void | Check< T0, T1, T2, T3 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1, T2 arg2, T3 arg3) |
| | Throws an AssertException with a message if the condition is false. The message is composed from additional arguments. More...
|
| |
| static void | Check< T0, T1, T2, T3, T4 > ([DoesNotReturnIf(false)] bool condition, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) |
| | Throws an AssertException with a message if the condition is false. The message is composed from additional arguments. More...
|
| |
| static void | Fail () |
| | Always throws an AssertException. More...
|
| |
| static void | Fail (string error) |
| | Always throws an AssertException with a message. More...
|
| |
| static void | Fail (string format, params object[] args) |
| | Always throws an AssertException with a message. More...
|
| |
| static void | Log (bool condition, string message) |
| | Logs an assertion if the condition is false. For Unity builds, log goes straight to UnityEngine.Debug. Otherwise, log goes to LogError stream. More...
|
| |
| static void | Log< T0 > (bool condition, string format, T0 arg0) |
| | Logs an assertion if the condition is false. For Unity builds, log goes straight to UnityEngine.Debug. Otherwise, log goes to LogError stream. More...
|
| |
| static void | Log< T0, T1 > (bool condition, string format, T0 arg0, T1 arg1) |
| | Logs an assertion if the condition is false. For Unity builds, log goes straight to UnityEngine.Debug. Otherwise, log goes to LogError stream. More...
|
| |
| static void | Log< T0, T1, T2 > (bool condition, string format, T0 arg0, T1 arg1, T2 arg2) |
| | Logs an assertion if the condition is false. For Unity builds, log goes straight to UnityEngine.Debug. Otherwise, log goes to LogError stream. More...
|
| |
| static void | Log< T0, T1, T2, T3 > (bool condition, string format, T0 arg0, T1 arg1, T2 arg2, T3 arg3) |
| | Logs an assertion if the condition is false. For Unity builds, log goes straight to UnityEngine.Debug. Otherwise, log goes to LogError stream. More...
|
| |
Provides methods for asserting conditions. Throws an AssertException when a condition is not met. Methods are only invoked in DEBUG builds unless otherwise specified.