FastMoq
Search Results for

    Show / Hide Table of Contents

    Class ProviderSelectionDiagnostics

    Builds consistent provider-selection guidance for provider-specific FastMoq APIs. This keeps runtime messages aligned across the compatibility surface and provider-specific escape hatches.

    Inheritance
    object
    ProviderSelectionDiagnostics
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: FastMoq.Providers
    Assembly: FastMoq.Abstractions.dll
    Syntax
    public static class ProviderSelectionDiagnostics

    Methods

    BuildProviderMismatchMessage(string, Type, object?, object?, string, string)

    Creates a standardized provider mismatch message that names the expected provider, the inferred active provider, and the common bootstrap options. Use this to keep runtime guidance aligned with the analyzer guidance for provider bootstrap.

    Declaration
    public static string BuildProviderMismatchMessage(string expectedProviderName, Type mockedType, object? nativeMock, object? instance, string apiName, string providerNeutralAlternative)
    Parameters
    Type Name Description
    string expectedProviderName
    Type mockedType
    object nativeMock
    object instance
    string apiName
    string providerNeutralAlternative
    Returns
    Type Description
    string
    In this article
    Back to top
    Generated 2026-04-29 03:53 UTC