IWindows125xStringAssertions
Short summary
This interface provides assert statements for Windows-1252 and Windows-1251 strings up to 255 characters length.
Used encoding is specified in Tc2_Utilities.GLOBAL_SBCS_TABLE global variable
Attention: All strings are handled as null- terminated byte streams
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | __SYSTEM.IQueryInterface | - |
UML Diagram
Methods
contains
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checksearchString(Tc2_System.T_MaxString): string must be found instringToCheckmessage(AssertMessage): message if the assertion is falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLEignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal too
- Return type:
VOID
This assertion method checks if the current string stringToCheck contains the search string.…
containsNo
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checksearchString(Tc2_System.T_MaxString): string that must not be found instringToCheckmessage(AssertMessage): message if the assertion is falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLEignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal too
- Return type:
VOID
This assertion method checks if the current string stringToCheck not contains the search string.…
endsWith
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkend(Tc2_System.T_MaxString): expected end ofstringToCheckmessage(AssertMessage): message if the assertion is falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLEignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal tootrim(BOOL):TRUEmeans truncation of spaces on the right side ofstringToCheck
- Return type:
VOID
This assertion method checks if the current string stringToCheck ends with the string end.…
isEmpty
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck is empty.…
isEqualTo
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkexpected(Tc2_System.T_MaxString):stringToCheckmust be equal to expectedmessage(AssertMessage): message if the assertion is falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLEignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal too
- Return type:
VOID
This assertion method checks if the current string stringToCheck is equal to expected.…
isNotEmpty
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck is not empty.…
isNotEqualTo
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkunexpected(Tc2_System.T_MaxString):stringToCheckmust be not equal to expectedmessage(AssertMessage): message if the assertion is falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLEignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal too
- Return type:
VOID
This assertion method checks if the current string stringToCheck is not equal to unexpected.…
lengthIsBetween
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkminLength(USINT): lower limit of the string lengthmaxLength(USINT): upper limit of the string lengthmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck length is between minLength and maxLength.…
lengthIsExact
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkexpectedLength(USINT): expected length ofstringToCheckmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck length is equal to expectedLength.…
lengthIsMax
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkmaxLength(USINT): upper limit of the length ofstringToCheckmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck length is equal or less than to maxLength.…
lengthIsMin
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkminLength(USINT): lower limit of the length ofstringToCheckmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current string stringToCheck length is equal or grater than to minLength.…
setCallBack
- Parameters:
callBack(IAssertCallBack): the class that must be informed if an assertion is false
- Return type:
VOID
This methods is the setter for the callback class if an assertion was false…
startsWith
- Parameters:
stringToCheck(Tc2_System.T_MaxString): current string to checkstart(Tc2_System.T_MaxString): expected start ofstringToCheckmessage(AssertMessage): message if the assertion is falsesbcsType(Tc2_Utilities.E_SBCSType): used Single Byte Character Set (SBCS), is set in Tc2_Utilities.GLOBAL_SBCS_TABLEignoreCases(BOOL):TRUEmeans ignore cases;FALSEmeans that cases must be equal tootrim(BOOL):TRUEmeans truncation of spaces on the left side ofstringToCheck
- Return type:
VOID
This assertion method checks if the current string stringToCheck starts with string start.…
Code
Declaration
INTERFACE IWindows125xStringAssertions EXTENDS __SYSTEM.IQueryInterface