MockerCreationExtensions..::..CreateMockInternal Method

Creates the mock internal.

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

Syntax


public static Mock CreateMockInternal(
	this Mocker mocker,
	Type type,
	IReadOnlyCollection<Nullable<Object>> parameterList,
	bool isNonPublic
)
<ExtensionAttribute> _
Public Shared Function CreateMockInternal ( _
	mocker As Mocker, _
	type As Type, _
	parameterList As IReadOnlyCollection(Of Nullable(Of Object)), _
	isNonPublic As Boolean _
) As Mock
[ExtensionAttribute]
public:
static Mock^ CreateMockInternal(
	Mocker^ mocker, 
	Type^ type, 
	IReadOnlyCollection<Nullable<Object^>>^ parameterList, 
	bool^ isNonPublic
)

Parameters

mocker
Type: FastMoq..::..Mocker
The mocker.
type
Type: Type
The type.
parameterList
Type: IReadOnlyCollection<(Of <(<'Nullable<(Of <(<'Object>)>)>>)>)>
The constructor.
isNonPublic
Type: Boolean
if set to true [is non public].

Return Value

Creates the mock internal.

Exceptions


ExceptionCondition
ApplicationExceptionCannot create instance.