OneOf(T) Method (Expression(Func))

Moq

Collapse imageExpand ImageCopy imageCopyHover image

[Missing <summary> documentation for "M:Moq.Mocks.OneOf``1(System.Linq.Expressions.Expression{System.Func`2})"]

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

Syntax

C#
[ObsoleteAttribute("Moved to Mock.Of<T>, as it's a single one, so no reason to be on Mocks.", 
	true)]
public static T OneOf<T>(
	Expression<Func> specification
)
where T : class

Type Parameters

T

See Also