Mocker..::..AddMock<(Of <(<'T>)>)> Method (Mock<(Of <(<'T>)>)>, Boolean, Boolean)
Namespace:
FastMoq
Assembly: FastMoq.Core (in FastMoq.Core.dll)
Assembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
Type Parameters
- T
- The Mock Type, usually an interface.
Parameters
- mock
- Type: Mock<(Of <(<'T>)>)>
Mock to Add.
- overwrite
- Type: Boolean
Overwrite if the mock exists or throw ArgumentException if this parameter is false.
- nonPublic
- Type: Boolean
if set to true uses public and non-public constructors.