Assert_DateAndTime_NotEqual (FUN) ¶ FUNCTION Assert_DateAndTime_NotEqual : BOOL Assertion function to check unequality of two values of type DATE_AND_TIME InOut: Scope Name Type Initial Comment Return Assert_DateAndTime_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 DT The reference value actualValue DT 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_LDate_Equal (FUN) ¶ FUNCTION Assert_LDate_Equal : BOOL Assertion function to check equality of two values of type LDATE InOut: Scope Name Type Initial Comment Return Assert_LDate_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 LDATE The expected value actualValue LDATE 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_LDate_Greater (FUN) ¶ FUNCTION Assert_LDate_Greater : BOOL Assertion function to check that a value of LDATE is greater then the given threshold InOut: Scope Name Type Initial Comment Return Assert_LDate_Greater 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 LDATE The value indicating the threshold actualValue LDATE 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_DateAndTime_Greater (FUN) ¶ FUNCTION Assert_DateAndTime_Greater : BOOL Assertion function to check that a value of DATE_AND_TIME is greater then the given threshold InOut: Scope Name Type Initial Comment Return Assert_DateAndTime_Greater 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 DT The value indicating the threshold actualValue DT 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_DateAndTime_GreaterEqual (FUN) ¶ FUNCTION Assert_DateAndTime_GreaterEqual : BOOL Assertion function to check that a value of DATE_AND_TIME is greater or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_DateAndTime_GreaterEqual 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 DT The value indicating the threshold actualValue DT 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_DateAndTime_Less (FUN) ¶ FUNCTION Assert_DateAndTime_Less : BOOL Assertion function to check that a value of DATE_AND_TIME is less then the given threshold InOut: Scope Name Type Initial Comment Return Assert_DateAndTime_Less 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 DT The value indicating the threshold actualValue DT 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_DateAndTime_LessEqual (FUN) ¶ FUNCTION Assert_DateAndTime_LessEqual : BOOL Assertion function to check that a value of DATE_AND_TIME is less or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_DateAndTime_LessEqual 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 DT The value indicating the threshold actualValue DT 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 .
LDATE ¶ Assert_LDate_Equal (Function) Assert_LDate_Greater (Function) Assert_LDate_GreaterEqual (Function) Assert_LDate_Less (Function) Assert_LDate_LessEqual (Function) Assert_LDate_NotEqual (Function)
CreateAssertionErrorMessageForArrayContent (FUN) ¶ FUNCTION CreateAssertionErrorMessageForArrayContent Helper function to create an error message for assertions that failed because of the content of an array. Hint: for longer arrays or if wsErrorMsg is used, it is recommended to change the value of the library parameter Constants.WSTRING_LENGTH . InOut: Scope Name Type Comment Inout wsAssertError WSTRING(Constants.WSTRING_LENGTH) Inout Const wsAssertOperator WSTRING(Constants.WSTRING_LENGTH) The assert operator e.g. Strings.EQUAL or “CONTAINS SEQUENCE” wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) A custom error message that should be appended. If no message is provided the “Additional information” part will not be added to the returned error. wsActualValues WSTRING(Constants.WSTRING_LENGTH) The values of the actual array as WSTRING wsReferenceValues WSTRING(Constants.WSTRING_LENGTH) The values of the actual array as WSTRING
CreateAssertionErrorMessageForInterface (FUN) ¶ FUNCTION CreateAssertionErrorMessageForInterface Helper function to create an error message for failed assertions of standard datatypes. Hint: if wsErrorMsg is used, it is recommended to change the value of the library parameter Constants.WSTRING_LENGTH . InOut: Scope Name Type Comment Inout wsAssertError WSTRING(Constants.WSTRING_LENGTH) Inout Const wsAssertOperator WSTRING(Constants.WSTRING_LENGTH) The assert operator e.g. Strings.EQUAL or Strings.CONTAINS wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) A custom error message that should be appended. If no message is provided the “Additional information” part will not be added to the returned error.