SysTestAssert.assertNotSame Method [AX 2012]

Checks whether the objects are not the same.

Syntax

public void assertNotSame(
    Object _expected, 
    Object _actual, 
   [str _message])

Run On

Called

Parameters

  • _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.

See Also

SysTestAssert Class

SysTestCase Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework