matlab.unittest.constraints.EveryCellOf Class
Namespace: matlab.unittest.constraints
Test if every element of cell array satisfies constraint
Description
The matlab.unittest.constraints.EveryCellOf class provides a proxy of the
actual value, so you can test if every element of a cell array satisfies a given constraint.
When you include the proxy in your test, the testing framework examines the constraint on an
element-by-element basis.
You can use an instance of this class in tests performed with the qualification methods
assertThat, assumeThat, fatalAssertThat,
or verifyThat. The class does not modify the supplied actual value. It serves
only as a wrapper to perform the constraint analysis.
Creation
Description
p = matlab.unittest.constraints.EveryCellOf(actualValue)
creates a proxy to test if every element of the specified cell array satisfies a
constraint and sets the ActualValue property. When you use this proxy to test against a
constraint, the test passes if every element of actualValue satisfies
the constraint.
Properties
Examples
Version History
Introduced in R2013a