Package: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Constraint specifying structure containing particular field
HasField(
provides
a constraint specifying structure containing particular field, fieldname
)fieldname
.
The constraint is satisfied if the actual value is a structure and
that structure contains a field named fieldname
.
|
Name of the field that a structure must contain to satisfy the constraint, specified as a character vector or a string scalar. |
|
Name of the field that a structure must contain to satisfy the
constraint. Set this property through the constructor via the |
Value. To learn how value classes affect copy operations, see Copying Objects.