Expect(TResult) Method (((T, TResult)))

Moq 2.6

Namespace:  Moq
Assembly:  Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)

Syntax

C#
public IExpect<TResult> Expect<TResult>(
	Expression<Func<T, TResult>> expression
)

Parameters

expression
Type: Expression<(Of <(Func<(Of <(T, TResult>)>)>)>)
Lambda expression that specifies the expected method invocation.

Type Parameters

TResult
Type of the return value. Typically omitted as it can be inferred from the expression.

See Also