matlab.unittest.constraints.IsAnything Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.Constraint
Test for any value
Description
The matlab.unittest.constraints.IsAnything class provides a constraint to
test for any value.
Creation
Description
c = matlab.unittest.constraints.IsAnything creates a constraint
that is satisfied by any value.
Examples
Tips
Classes in the
matlab.unittest.selectorsnamespace that do not require inputs useIsAnythingas the default constraint.For an example of how to use
IsAnythingin tests created with the mocking framework, see Create Mock Object.
Version History
Introduced in R2014a