FastMoq
Search Results for

    Show / Hide Table of Contents

    Class MoqMockAdapter

    Wraps a non-generic Moq mock in the provider-neutral FastMoq abstraction.

    Inheritance
    object
    MoqMockAdapter
    Implements
    IFastMock
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastMoq.Providers.MoqProvider
    Assembly: FastMoq.Provider.Moq.dll
    Syntax
    public sealed class MoqMockAdapter : IFastMock

    Constructors

    MoqMockAdapter(Mock)

    Initializes a new adapter for the supplied Moq mock.

    Declaration
    public MoqMockAdapter(Mock inner)
    Parameters
    Type Name Description
    Mock inner

    Properties

    Inner

    Gets the wrapped Moq mock.

    Declaration
    public Mock Inner { get; }
    Property Value
    Type Description
    Mock

    Instance

    Gets the mocked instance.

    Declaration
    public object Instance { get; }
    Property Value
    Type Description
    object

    MockedType

    Gets the runtime type being mocked.

    Declaration
    public Type MockedType { get; }
    Property Value
    Type Description
    Type

    NativeMock

    Gets the provider-specific underlying mock object.

    Declaration
    public object NativeMock { get; }
    Property Value
    Type Description
    object

    Methods

    Reset()

    Resets mock state when supported by the provider wrapper.

    Declaration
    public void Reset()

    Implements

    IFastMock

    Extension Methods

    IFastMockMoqExtensions.AsMoq(IFastMock)
    ObjectExtensions.RaiseIfNull<T>(T?, string?, string?, int?, string?)
    TestClassExtensions.GetFieldValue<TObject>(TObject, string, TObject?)
    TestClassExtensions.GetField<TObject>(TObject, string)
    TestClassExtensions.GetMemberName<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMember<T, TValue>(T, Expression<Func<T, TValue>>)
    TestClassExtensions.GetMethodValue<TObject>(TObject, string, object?, params object[])
    TestClassExtensions.GetMethod<TObject>(TObject, string)
    TestClassExtensions.GetPropertyValue<TObject>(TObject, string, object?)
    TestClassExtensions.GetProperty<TObject>(TObject, string)
    TestClassExtensions.SetFieldValue<TObject>(TObject, string, object?)
    TestClassExtensions.SetPropertyValue<TObject>(TObject, string, object?)
    MockerHttpMoqExtensions.SetupHttpMessage(object, Func<HttpResponseMessage>, Expression?, Expression?)
    MockerHttpMoqExtensions.SetupMessageAsync<TMock, TReturn>(object, Expression<Func<TMock, Task<TReturn>>>, Func<TReturn>)
    MockerHttpMoqExtensions.SetupMessageProtectedAsync<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessageProtected<TMock, TReturn>(object, string, Func<TReturn>, params object?[]?)
    MockerHttpMoqExtensions.SetupMessage<TMock, TReturn>(object, Expression<Func<TMock, TReturn>>, Func<TReturn>)
    TestClassExtensions.GetFieldInfo<TType>(object, string)
    TestClassExtensions.GetFieldValue<T>(object?, FieldInfo)
    TestClassExtensions.GetFieldValue<T, TType>(object, string)
    In this article
    Back to top
    Generated 2026-04-08 12:38 UTC