SysTestAssert.assertTrue Method [AX 2012]
Checks whether the condition is true.
Syntax
public void assertTrue(anytype _condition, [str _message])
Run On
Called
Parameters
- _condition
Type: anytype
The condition that is tested.
- _message
Type: str
An error message logged when the assertion test fails; optional.
Remarks
To use this method, create a class that extends the SysTestCase class and then add a method to provide your test logic. For an example of how to use an assertion method, see How to: Create a Test Case.
If you use the Unit Test toolbar to run tests, error messages will be displayed in the Infolog.