Telerik® JustMock™ by Progress

Setups target property set operation to act in a specific way.

Examples

CopyC#
Mock.ArrangeSet(() => foo.MyValue = 10).Throws(new InvalidOperationException());
This will throw InvalidOperationException for when foo.MyValue is set with 10.

Namespace: Telerik.JustMock
Assembly: Telerik.JustMock (in Telerik.JustMock.dll) Version: 2013.3.1021.0 (2013.3.1021.0)

Syntax

C#
public static ActionExpectation ArrangeSet(
	Action action
)
Visual Basic
Public Shared Function ArrangeSet ( _
	action As Action _
) As ActionExpectation

Parameters

action
Type: System..::..Action
Target action

Return Value

Reference to ActionExpectation to setup the mock.

See Also