SysTestAssert.assertEquals Method [AX 2012]

Checks whether two values are equal.

public void assertEquals(
    anytype _expected, 
    anytype _actual, 
   [str _message])

Run On

Called

Parameters

_expected
Type: anytype
The expected value.
_actual
Type: anytype
The actual value.
_message
Type: str
An error message logged when the assertion test fails; optional.

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 the assertEquals method, see How to: Create a Test Case.

You cannot pass nullNothingnullptrunita null reference (Nothing in Visual Basic) to this method.

Community Additions

ADD
Show: