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.'))
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.