Class Assert
Implements global assertion functions.
public static class Assert
- Inheritance
-
Assert
- Inherited Members
Methods
assert(bool)
Checks for a condition; if the condition is false, throws a runtime exception.
public static void assert(bool condition)
Parameters
conditionboolThe condition to check.
Exceptions
assert(bool, string)
Checks for a condition; if the condition is false, throws a runtime exception with the specified message.
public static void assert(bool condition, string message)
Parameters
Exceptions
assertEqual(object, object)
Checks wheter its two arguments are equal. If they are not, throws a runtime exception.
public static void assertEqual(object obj1, object obj2)