DWordAssertions
Short summary
This class provides assert statements for double words
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | AbstractAssertion | IDWordAssertions |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
Methods
andMaskIsEqualTo
- Parameters:
currentValue(DWORD): current value to checkmask(DWORD): 2nd operand for bitwise operationexpectedValue(DWORD): expected result after maskingmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the result current value bitwise AND mask is equal to the expected value…
andMaskIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checkmask(DWORD): 2nd operand for bitwise operationunexpectedValue(DWORD): unexpected result after maskingmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the result current value bitwise AND mask…
bitXIsEqualTo
- Parameters:
currentValue(DWORD): current value to checknumber(BitNumberDWord): number of bit to checkexpectedValue(BOOL): expected value of bitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the selected bit of current value…
bitXIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checknumber(BitNumberDWord): number of bit to checkunexpectedValue(BOOL): unexpected value of bitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the selected bit of current value…
bitXIsSet
- Parameters:
currentValue(DWORD): current value to checknumber(BitNumberDWord): number of bit to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the selected bit of current value…
bitXIsUnset
- Parameters:
currentValue(DWORD): current value to checknumber(BitNumberDWord): number of bit to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the selected bit of current value…
lsbIsEqualTo
- Parameters:
currentValue(DWORD): current value to checkexpectedValue(BOOL): expected value of lsbmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the least significant bit of current value…
lsbIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checkunexpectedValue(BOOL): unexpected value of lsbmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the least significant bit of current value…
lsbIsSet
- Parameters:
currentValue(DWORD): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the least significant bit of current value…
lsbIsUnset
- Parameters:
currentValue(DWORD): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the least significant bit of current value…
msbIsEqualTo
- Parameters:
currentValue(DWORD): current value to checkexpectedValue(BOOL): expected value of msbmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the most significant bit of current value…
msbIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checkunexpectedValue(BOOL): unexpected value of msbmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the most significant bit of current value…
msbIsSet
- Parameters:
currentValue(DWORD): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the most significant bit of current value…
msbIsUnset
- Parameters:
currentValue(DWORD): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the most significant bit of current value…
orMaskIsEqualTo
- Parameters:
currentValue(DWORD): current value to checkmask(DWORD): 2nd operand for bitwise operationexpectedValue(DWORD): expected result after maskingmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the result current value bitwise OR mask is equal to the expected value…
orMaskIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checkmask(DWORD): 2nd operand for bitwise operationunexpectedValue(DWORD): unexpected result after maskingmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the result current value bitwise OR mask …
valueIsEqualTo
- Parameters:
currentValue(DWORD): current value to checkexpectedValue(DWORD): 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…
valueIsGreaterThan
- Parameters:
currentValue(DWORD): current value to checklessValue(DWORD): 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(DWORD): lower limit for the current valuecurrentValue(DWORD): current value to checkupperLimit(DWORD): 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(DWORD): current value to checkgreaterValue(DWORD): 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(DWORD): current value to checkmaximumValue(DWORD): 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(DWORD): current value to checkminimumValue(DWORD): 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…
valueIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checkunexpectedValue(DWORD): 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…
xorMaskIsEqualTo
- Parameters:
currentValue(DWORD): current value to checkmask(DWORD): 2nd operand for bitwise operationexpectedValue(DWORD): expected result after maskingmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the result current value bitwise XOR mask is equal to the expected value…
xorMaskIsNotEqualTo
- Parameters:
currentValue(DWORD): current value to checkmask(DWORD): 2nd operand for bitwise operationunexpectedValue(DWORD): unexpected result after maskingmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the result current value bitwise XOR mask …
Code
Declaration
{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL DWordAssertions EXTENDS AbstractAssertion IMPLEMENTS IDWordAssertions
VAR
END_VAR
VAR CONSTANT
(* least significant bit *)
LSB :DWORD := 16#0000_0001;
(* most significant bit *)
MSB :DWORD := 16#8000_0000;
END_VAR