Main Content
when
Class: matlab.mock.PropertyGetBehavior
Namespace: matlab.mock
Specify mock object property access action
Syntax
when(behavior,action)
Description
when(
specifies
the action that a mock object property takes when it is accessed.behavior
,action
)
Input Arguments
Examples
Version History
Introduced in R2017a