SysTestAssert.fail Method [AX 2012]

Fails the current test case.

Syntax

public void fail([str _message])

Run On

Called

Parameters

  • _message
    Type: str
    A failure message; optional.

Remarks

Use this method if none of the assertion methods suits your needs. To use this method, create your own validation logic and call the fail method.

See Also

SysTestAssert Class

SysTestCase Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework