Assert_Word_NotEqual (FUN) ¶ FUNCTION Assert_Word_NotEqual : BOOL Assertion function to check unequality of two values of type WORD InOut: Scope Name Type Initial Comment Return Assert_Word_NotEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue WORD The reference value actualValue WORD The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
String ¶ STRING Assert_String_Contains (Function) Assert_String_ContainsNot (Function) Assert_String_EndsWith (Function) Assert_String_Equal (Function) Assert_String_NotEqual (Function) Assert_String_StartsWith (Function) Assert_String_StrCmpEndA (Function) Assert_String_StrCmpStartA (Function) WSTRING Assert_WString_Contains (Function) Assert_WString_ContainsNot (Function) Assert_WString_Equal (Function) Assert_WString_NotEqual (Function)
STRING ¶ Assert_String_Contains (Function) Assert_String_ContainsNot (Function) Assert_String_EndsWith (Function) Assert_String_Equal (Function) Assert_String_NotEqual (Function) Assert_String_StartsWith (Function) Assert_String_StrCmpEndA (Function) Assert_String_StrCmpStartA (Function)
Assert_String_Contains (FUN) ¶ FUNCTION Assert_String_Contains : BOOL Assertion function to check that a value of type STRING contains the given substring InOut: Scope Name Type Initial Comment Return Assert_String_Contains BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . expectedSubstring STRING(Constants.MAX_STRING_LENGTH) The expected substring actualValue STRING(Constants.MAX_STRING_LENGTH) The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_WString_ContainsNot (FUN) ¶ FUNCTION Assert_WString_ContainsNot : BOOL Assertion function to check that a value of type WSTRING does not contain the given substring InOut: Scope Name Type Initial Comment Return Assert_WString_ContainsNot BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . unexpectedSubstring WSTRING The substring that should not be contained actualValue WSTRING The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_WString_Contains (FUN) ¶ FUNCTION Assert_WString_Contains : BOOL Assertion function to check that a value of type WSTRING contains the given substring InOut: Scope Name Type Initial Comment Return Assert_WString_Contains BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . expectedSubstring WSTRING The expected substring actualValue WSTRING The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_WString_Equal (FUN) ¶ FUNCTION Assert_WString_Equal : BOOL Assertion function to check equality of two values of type WSTRING InOut: Scope Name Type Initial Comment Return Assert_WString_Equal BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue WSTRING The expected value actualValue WSTRING The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_WString_NotEqual (FUN) ¶ FUNCTION Assert_WString_NotEqual : BOOL Assertion function to check unequality of two values of type WSTRING InOut: Scope Name Type Initial Comment Return Assert_WString_NotEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue WSTRING The reference value actualValue WSTRING The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Constants (PARAMS) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Constant MAX_INFO_LENGTH INT 255 MAX_STRING_LENGTH INT 255 WSTRING_LENGTH INT 255
Enums ¶ ASSERTION_RESULT (Enum) BOOLASSIGN (Enum) BOOLCOMPARE (Enum) CHECKTYPE (Enum) FAILUREMODE (Enum)