MockerBooleanExtensions..::..Contains<(Of <(<'T>)>)> Method (Mocker)

Determines whether this instance contains a Mock of T.

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

Syntax


public static bool Contains<T>(
	this Mocker mocker
)
<ExtensionAttribute> _
Public Shared Function Contains(Of T) ( _
	mocker As Mocker _
) As Boolean
[ExtensionAttribute]
public:
generic<typename T>
static bool^ Contains(
	Mocker^ mocker
)

Type Parameters

T
The Mock Type, usually an interface.

Parameters

mocker
Type: FastMoq..::..Mocker
The mocker.

Return Value

true if the Mock exists for the given type; otherwise, false.

Exceptions


ExceptionCondition
ArgumentNullExceptiontype is null.
ArgumentExceptiontype must be a class. - type