FastMoq
Search Results for

    Show / Hide Table of Contents

    Class MockerBooleanExtensions

    Mocker Boolean Extensions Class.

    Inheritance
    object
    MockerBooleanExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    true if [contains] [the specified type]; otherwise, false.

    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

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

    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

    In this article
    Back to top
    Generated 2026-04-08 12:38 UTC