Returns(T) Method (Func)

Moq

Collapse imageExpand ImageCopy imageCopyHover image

[Missing <summary> documentation for "M:Moq.Language.IReturns`2.Returns``1(System.Func`2)"]

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

Syntax

C#
IReturnsResult<TMock> Returns<T>(
	Func valueFunction
)

Parameters

valueFunction
Type: System..::..Func<(Of <(<'T, TResult>)>)>

Type Parameters

T

See Also