Class MockerBooleanExtensions
Mocker Boolean Extensions Class.
Inherited Members
Namespace: FastMoq.Extensions
Assembly: FastMoq.Core.dll
Syntax
public static class MockerBooleanExtensions
Methods
Contains(Mocker, Type)
Determines whether this instance contains the object.
Declaration
public static bool Contains(this Mocker mocker, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Mocker | mocker | The mocker. |
| Type | type | The type. |
Returns
| Type | Description |
|---|---|
| bool |
|
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | |
| ArgumentException | type must be a class. - type |
Contains<T>(Mocker)
Determines whether this instance contains a Mock of T.
Declaration
public static bool Contains<T>(this Mocker mocker) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| Mocker | mocker | The mocker. |
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| T | The Mock Type, usually an interface. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | type is null. |
| ArgumentException | type must be a class. - type |