Mocker..::..CreateMockInstance<(Of <(<'T>)>)> Method (Boolean, array<Object>[]()[][])
Creates the mock instance that is not automatically injected.
Namespace:
FastMoqAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
Type Parameters
- T
Parameters
- 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. - type |
ApplicationException | Cannot create instance. |