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.
Inherited Members
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 |