Mocker..::..GetRequiredMock<(Of <(<'T>)>)> Method
Gets the required mock.
Namespace:
FastMoqAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public Mock<T> GetRequiredMock<T>()
Public Function GetRequiredMock(Of T) As Mock(Of T)
public: generic<typename T> Mock<T>^ GetRequiredMock()
Type Parameters
- T
- The Mock Type, usually an interface.
Return Value
[T:FastMoq.Models.MockModel<T>.Mock].Exceptions
Exception | Condition |
---|---|
ArgumentException | type must be a class. - type |
InvalidOperationException | Mock must exist. - type |