![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](icons/copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() |
Moq |
Mocks..::..OneOf<(Of <(<'T>)>)> Method (Expression<(Of <(<'Func>)>)>) |
Mocks Class See Also Send Feedback |
[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 |
Parameters
- specification
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TResult>)>)>>)>)>
Type Parameters
- T