Mocker..::..CreateMockInstance Method (Type, Boolean, array<Object>[]()[][])
Creates an instance of the mock.
Namespace:
FastMoqAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
Parameters
- type
- Type: Type
The type.
- nonPublic
- Type: Boolean
if set to true can use non-public constructor.
- args
- Type: array<Object>[]()[][]
The arguments used to find the correct constructor for a class.
Return Value
Mock.Exceptions
Exception | Condition |
---|---|
ArgumentException | type must be a class or interface. - type. |
ApplicationException | Type must be a class or interface. - type. |
ApplicationException | Type must be a class or interface., nameof(type) |