Share via


SysTestAssert.comparisonFail Method [AX 2012]

Converts two values to strings to provide a message when a comparison fails.

Syntax

private void comparisonFail(
    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 to the Infolog when the assertion test fails; optional.

Remarks

This is a private method that is used when a comparison fails.

See Also

SysTestAssert Class

SysTestCase Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework