Returns Method

Moq 2.6

Overload List

  NameDescription
Returns(Func<(Of <(TResult>)>))
Specifies a function that will calculate the value to return from the method.
Returns<(Of <(T>)>)(Func<(Of <(T, TResult>)>))
Specifies a function that will calculate the value to return from the method, retrieving the arguments for the invocation.
Returns<(Of <(T1, T2>)>)(Func<(Of <(T1, T2, TResult>)>))
Specifies a function that will calculate the value to return from the method, retrieving the arguments for the invocation.
Returns<(Of <(T1, T2, T3>)>)(Func<(Of <(T1, T2, T3, TResult>)>))
Specifies a function that will calculate the value to return from the method, retrieving the arguments for the invocation.
Returns<(Of <(T1, T2, T3, T4>)>)(Func<(Of <(T1, T2, T3, T4, TResult>)>))
Specifies a function that will calculate the value to return from the method, retrieving the arguments for the invocation.
Returns(TResult)
Specifies the value to return.

See Also