matlab.unittest.constraints.IsSameHandleAs Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if two handle arrays are the same
Description
The matlab.unittest.constraints.IsSameHandleAs
class provides a constraint
to test if a handle array is the same as another handle array. Two handle arrays are the same
if they are the same size and their corresponding elements point to the same handle
object.
Creation
Description
c = matlab.unittest.constraints.IsSameHandleAs(expectedHandle)
creates a constraint to test if a handle array is the same as the expected handle array
and sets the ExpectedHandle
property. The constraint is satisfied if the
handle array and expectedHandle
are the same size and their
corresponding elements point to the same handle object.