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