Mocker..::..RemoveMock<(Of <(<'T>)>)> Method

Remove specified Mock of T.

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

Syntax


public bool RemoveMock<T>(
	Mock<T> mock
)
Public Function RemoveMock(Of T) ( _
	mock As Mock(Of T) _
) As Boolean
public:
generic<typename T>
bool^ RemoveMock(
	Mock<T>^ mock
)

Type Parameters

T
The Mock Type, usually an interface.

Parameters

mock
Type: Mock<(Of <(<'T>)>)>
Mock to Remove.

Return Value

true if the mock is successfully removed, false otherwise.