Telerik® JustMock™ by Progress

Setups the target call to act in a specific way.

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


public static ActionExpectation Arrange<T>(
	this T obj,
	Expression<Action<T>> expression
Visual Basic
<ExtensionAttribute> _
Public Shared Function Arrange(Of T) ( _
	obj As T, _
	expression As Expression(Of Action(Of T)) _
) As ActionExpectation


Type: T
Target instance.
Type: System.Linq.Expressions..::..Expression<(Of <(<'Action<(Of <(<'T>)>)>>)>)>
Target expression.

Type Parameters

Return type for the target setup.

Return Value

Reference to ActionExpectation to setup the mock.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also