Setup Method (Expression(Action(T)))

Moq

Collapse imageExpand ImageCopy imageCopyHover image
The expectation will be considered only in the former condition.

Namespace: Moq.Language
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
ISetup<T> Setup(
	Expression<Action<T>> expression
)

Parameters

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

Return Value

See Also