FastMoq
Search Results for

    Show / Hide Table of Contents

    Enum MockFeatures

    Feature flags that control optional FastMoq runtime behaviors.

    Namespace: FastMoq
    Assembly: FastMoq.Core.dll
    Syntax
    [Flags]
    public enum MockFeatures

    Fields

    Name Description
    AutoInjectDependencies

    Automatically resolves and injects constructor, field, and property dependencies when FastMoq creates or prepares objects.

    AutoSetupProperties

    Configures supported mocks so writable properties behave like normal auto-properties.

    CallBase

    Allows class-based mocks to call through to their base implementation when supported by the active provider.

    FailOnUnconfigured

    Causes unresolved or unconfigured interactions to fail immediately instead of using lenient defaults.

    LoggerCallback

    Captures logger invocations into the current Mocker instance when supported by the active provider.

    None

    No optional features are enabled.

    ResolveNestedMembers

    Enables recursive nested member population after object creation or mock setup.

    TrackInvocations

    Records invocation history for later verification and diagnostics.

    VerifyNoUnexpected

    Enables verification helpers that fail when unexpected calls were recorded.

    Extension Methods

    TestClassExtensions.GetMemberName<MockFeatures, TValue>(MockFeatures, Expression<Func<MockFeatures, TValue>>)
    TestClassExtensions.GetMember<MockFeatures, TValue>(MockFeatures, Expression<Func<MockFeatures, TValue>>)
    TestClassExtensions.GetProperty<MockFeatures>(MockFeatures, string)
    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