matlab.mock.actions.DoNothing Class
Namespace: matlab.mock.actions
Description
Use the matlab.mock.actions.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 = matlab.mock.actions.DoNothing
creates a DoNothing
object.
Methods
Examples
Version History
Introduced in R2020a