Assert_ArrayOfByte_ContainsSequence (FUN) ¶ FUNCTION Assert_ArrayOfByte_ContainsSequence : BOOL Assertion function to check that an ARRAY OF BYTE contains a specific sequence of values InOut: Scope Name Type Initial Comment Return Assert_ArrayOfByte_ContainsSequence 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^ . referenceArray POINTER TO BYTE The array with the sequence that should be contained actualArray POINTER TO BYTE The array 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_ArrayOfByte_Equal (FUN) ¶ FUNCTION Assert_ArrayOfByte_Equal : BOOL Assertion function to check that two ARRAY OF BYTE are equal. Two arrays are equal if all of the following conditions are met: * the two array have the same bounds * for each index the values of both arrays are equal InOut: Scope Name Type Initial Comment Return Assert_ArrayOfByte_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^ . referenceArray POINTER TO BYTE The reference array to check actualArray POINTER TO BYTE The array 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_ArrayOfByte_NotEqual (FUN) ¶ FUNCTION Assert_ArrayOfByte_NotEqual : BOOL Assertion function to check that two ARRAY OF BYTE are not equal. Two arrays are not equal if at least one of the following conditions is not met: * the two arrays have the same bounds * for each index the values of both arrays are equal InOut: Scope Name Type Initial Comment Return Assert_ArrayOfByte_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^ . referenceArray POINTER TO BYTE The reference array to check actualArray POINTER TO BYTE The array 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_ArrayOfDInt_Contains (FUN) ¶ FUNCTION Assert_ArrayOfDInt_Contains : BOOL Assertion function to check that an ARRAY OF DINT contains a specific value InOut: Scope Name Type Initial Comment Return Assert_ArrayOfDInt_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^ . referenceValue DINT The value that should be contained actualArray POINTER TO DINT The array 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_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_String_ContainsNot (FUN) ¶ FUNCTION Assert_String_ContainsNot : BOOL Assertion function to check that a value of type STRING does not contain the given substring InOut: Scope Name Type Initial Comment Return Assert_String_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 STRING(Constants.MAX_STRING_LENGTH) The substring that should not be contained 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_String_EndsWith (FUN) ¶ FUNCTION Assert_String_EndsWith : BOOL Assertion function to check that a value of type STRING ends with the given string InOut: Scope Name Type Initial Comment Return Assert_String_EndsWith 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^ . expectedSuffix STRING(Constants.MAX_STRING_LENGTH) The expected suffix 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_String_Equal (FUN) ¶ FUNCTION Assert_String_Equal : BOOL Assertion function to check equality of two values of type STRING InOut: Scope Name Type Initial Comment Return Assert_String_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 STRING(Constants.MAX_STRING_LENGTH) The expected value 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_String_NotEqual (FUN) ¶ FUNCTION Assert_String_NotEqual : BOOL Assertion function to check unequality of two values of type STRING InOut: Scope Name Type Initial Comment Return Assert_String_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 STRING(Constants.MAX_STRING_LENGTH) The reference value 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_String_StartsWith (FUN) ¶ FUNCTION Assert_String_StartsWith : BOOL Assertion function to check that a value of type STRING starts with the given string InOut: Scope Name Type Initial Comment Return Assert_String_StartsWith 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^ . expectedPrefix STRING(Constants.MAX_STRING_LENGTH) The expected prefix 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 .