Skip to main content

valueIsNotEqualTo

Short summary

This assertion method checks if the current value is not equal to the unexpected value

Parameters

NameTypeCommentKind
currentValue__UXINTcurrent value to checkinput
unexpectedValue__UXINTunexpected value to compareinput
messageAssertMessagemessage if the assertion is falseinput

Code

Declaration

METHOD valueIsNotEqualTo
VAR_INPUT
(* current value to check *)
currentValue :__UXINT;
(* unexpected value to compare *)
unexpectedValue :__UXINT;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR

Implementation

IF (currentValue = unexpectedValue) THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('valueIsNotEqualTo'));
END_IF