Main Content
when
Class: matlab.mock.MethodCallBehavior
Namespace: matlab.mock
Specify mock object method behavior
Syntax
when(behavior,action)
Description
when(
specifies
the action that a mock object method takes when it is called with
the inputs defined by behavior
,action
)behavior
.
Input Arguments
Examples
Version History
Introduced in R2017a