behavior — Behavior of mock matlab.mock.PropertyGetBehavior instance
Behavior of the mock, specified as a matlab.mock.PropertyGetBehavior instance.
To create an instance of matlab.mock.PropertyGetBehavior,
call the matlab.mock.PropertyBehavior.get method
with the behavior object.
Example: get(myMockBehavior.MyProperty)
action — Defined action instance of matlab.mock.actions.ReturnStoredValue | instance of matlab.mock.actions.ThrowException
Defined action, specified as an instance of matlab.mock.actions.ReturnStoredValue or matlab.mock.actions.ThrowException.
Example: ReturnStoredValue
Example: ThrowException(MException('Account:deposit:Negative','Deposit
amount must be positive.'))