Skip to content

AssertNotEquals

Asserts the expected value is not equal to the actual value. If not, an error is thrown.

1
myScript.AssertNotEquals(expected: any, actual: any, message: string):void

Parameters

any expected
    The expected value.

any actual
    The actual value.

string message
    The message to display if the condition is false.

Remarks

Example

1
Script.AssertNotEquals(1, myResult, "Result should not be 1");