Package: matlab.mock.actions
Take no action
Use the DoNothing
class to specify that the framework takes no action when
a mock object method is invoked or when a mock object property is set.
DoNothing
cannot be used to set up behavior when accessing a mock object
property. To specify that a mock property must not be accessed, use the
matlab.mock.actions.ThrowException
class.
action = DoNothing
constructs an instance of the DoNothing
class and returns the instance in action
.
matlab.mock.actions.ThrowException
| matlab.mock.TestCase
| when
(MethodCallBehavior)
| when (PropertySetBehavior)