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.selectors
namespace that do not require inputs useIsAnything
as the default constraint.For an example of how to use
IsAnything
in tests created with the mocking framework, see Create Mock Object.
Version History
Introduced in R2014a