







![]() |
Moq |
Mock<(Of <(T>)>)..::.Expect<(Of <(TResult>)>) Method (<(Of <(<(Of <(T, TResult>)>)>)>)) |
Mock<(Of <(T>)>) Class See Also Send Feedback |
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.