isEmpty
Short summary
This assertion method checks if the current string stringToCheck is empty
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| stringToCheck | ( Tc2_System.MAX_STRING_LENGTH ) | current string to check | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD isEmpty
VAR_INPUT
(* current string to check *)
stringToCheck :WSTRING(Tc2_System.MAX_STRING_LENGTH);
(* message if the assertion is false *)
message :AssertMessage;
END_VAR
Implementation
IF (stringToCheck <> "") THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('isEmpty'));
END_IF