Gets the mock and allows an action against the mock.
Namespace:
FastMoq
Assembly:
FastMoq.Core (in FastMoq.Core.dll)
public Mock<T> GetMock<T>(
Action<Mock<T>> mockAction,
params Object[] args
)
Public Function GetMock(Of T) ( _
mockAction As Action(Of Mock(Of T)), _
ParamArray args As Object() _
) As Mock(Of T)
public:
generic<typename T>
Mock<T>^ GetMock(
Action<Mock<T>^>^ mockAction,
... array<Object^>^ args
)
Type Parameters
- T
Parameters
- mockAction
- Type: Action<(Of <(<'Mock<(Of <(<'T>)>)>>)>)>
The mock action.
- args
- Type: array<Object>[]()[][]
The arguments.
Return Value
Mock<T> of the mock.