IntAssertions
Short summary
This class provides assert statements for signed integers (INT)
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | AbstractAssertion | IIntAssertions |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
Methods
valueIsEqualTo
- Parameters:
currentValue(INT): current value to checkexpectedValue(INT): expected value to comparemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is equal to the expected value…
valueIsEven
- Parameters:
currentValue(INT): current value to checkmessage(Tc2_System.T_MaxString): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is even…
valueIsGreaterThan
- Parameters:
currentValue(INT): current value to checklessValue(INT): less than lower limitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is greater than the less value…
valueIsInRangeOf
- Parameters:
lowerLimit(INT): lower limit for the current valuecurrentValue(INT): current value to checkupperLimit(INT): upper limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is inside a limit…
valueIsLessThan
- Parameters:
currentValue(INT): current value to checkgreaterValue(INT): greater than upper limitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is less than the greater value…
valueIsMax
- Parameters:
currentValue(INT): current value to checkmaximumValue(INT): upper limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is less than or equal to the maximum value…
valueIsMin
- Parameters:
currentValue(INT): current value to checkminimumValue(INT): lower limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is greater than or equal to the minimum value…
valueIsNegative
- Parameters:
currentValue(INT): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is negative…
valueIsNotEqualTo
- Parameters:
currentValue(INT): current value to checkunexpectedValue(INT): unexpected value to comparemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is not equal to the unexpected value…
valueIsOdd
- Parameters:
currentValue(INT): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is odd…
valueIsPositive
- Parameters:
currentValue(INT): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is positve…
Code
Declaration
{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL IntAssertions EXTENDS AbstractAssertion IMPLEMENTS IIntAssertions
VAR
END_VAR
VAR CONSTANT
LSB_MASK :INT := 1;
END_VAR