Mocker..::..GetMock Method (Type, array<Object>[]()[][])

Gets of creates the mock of type.

Namespace:  FastMoq
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public Mock GetMock(
	Type type,
	params Object[] args
)
Public Function GetMock ( _
	type As Type, _
	ParamArray args As Object() _
) As Mock
public:
Mock^ GetMock(
	Type^ type, 
	... array<Object^>^ args
)

Parameters

type
Type: Type
The type.
args
Type: array<Object>[]()[][]
The arguments used to find the correct constructor for a class.

Return Value

Mock.