Skip to main content

isNotEqualTo

Short summary

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

Parameters

NameTypeCommentKind
stringToCheck( Tc2_System.MAX_STRING_LENGTH )current string to checkinput
unexpected( Tc2_System.MAX_STRING_LENGTH )stringToCheck must be not equal to expectedinput
messageAssertMessagemessage if the assertion is falseinput
ignoreCasesBOOLTRUE means ignore cases; FALSE means cases must be equal tooinput
normalizeStringsBOOLnormalize both strings for checkinput

Code

Declaration

METHOD isNotEqualTo
VAR_INPUT
(* current string to check *)
stringToCheck :WSTRING(Tc2_System.MAX_STRING_LENGTH);
(* ``stringToCheck`` must be not equal to expected *)
unexpected :WSTRING(Tc2_System.MAX_STRING_LENGTH);
(* message if the assertion is false *)
message :AssertMessage;
(* ``TRUE`` means ignore cases; ``FALSE`` means cases must be equal too *)
ignoreCases :BOOL := FALSE;
(*normalize both strings for check*)
normalizeStrings :BOOL := TRUE;
END_VAR

Implementation

THIS^.assertion.isNotEqualTo(
stringToCheck := ADR(stringToCheck),
unexpected := ADR(unexpected),
ignoreCases := ignoreCases,
message := message,
normalizeStrings := normalizeStrings
);