Debug.Log Extensions
Documentation (1.1.9)
|
|
static |
Logs an error message to the Console if expression does not return true
.
public void Divide(int dividend, int divisor) { Debug.Assert(()=>divisor != 0, ()=> Divide(dividend, divisor));
return (float) dividend / divisor; }
condition | Boolean expression you expect to return true . For example a lambda expression. |
contextMethod | Expression pointing to a method to which the assertion applies. |