Main Content
setToValue
Class: matlab.mock.PropertyBehavior
Namespace: matlab.mock
Construct object to define behavior when mocked property is set to specific value
Syntax
setBehavior = setToValue(behavior,value)
Description
setBehavior = setToValue(
constructs
a behavior
,value
)PropertySetBehavior
object to define behavior when
mocked property is set to a specific value. Typically you use the setToValue
method
to construct the PropertySetBehavior
implicitly when
you define mock behavior.
Input Arguments
Examples
Version History
Introduced in R2017a