matlab.mock.actions.DoNothing class
Package: matlab.mock.actions
Description
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.
Creation
action = DoNothing
constructs an instance of the DoNothing
class and returns the instance in action
.
Methods
Examples
Version History
Introduced in R2020a