Skip to main content

valueIsEqualTo

Short summary​

This assertion method checks if the current value is equal to the expected value

Parameters​

NameTypeCommentKind
currentValueBOOLcurrent value to checkinput
expectedValueBOOLexpected value to compareinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD valueIsEqualTo
VAR_INPUT
(* current value to check *)
currentValue :BOOL;
(* expected value to compare *)
expectedValue :BOOL;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR