Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Constraint specifying expected number of elements
HasElementCount(
provides
a constraint that specifies an expected number of elements. The constraint
is satisfied if the actual value array has the same number of elements
specified as by countVal
)countVal
.
|
Number of elements a value must have to satisfy the constraint. |
|
Number of elements a value must have to satisfy the constraint.
Set this property through the constructor via the |
Value. To learn how value classes affect copy operations, see Copying Objects.