Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

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

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

Arguments

any expected
The expected value.
any actual
The actual value.
string message
The message to display if the condition is false.

Example

Code Block
languagejs
Script.AssertEquals(1, myResult, "Result should be 1");