MockerBooleanExtensions..::..Contains<(Of <(<'T>)>)> Method (Mocker)
Determines whether this instance contains a Mock of T.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
<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
Exception | Condition |
---|---|
ArgumentNullException | type is null. |
ArgumentException | type must be a class. - type |