Enum ConstructorAmbiguityBehavior
Controls how FastMoq resolves constructor ambiguity when multiple equally viable constructors remain after candidate filtering.
Namespace: FastMoq
Assembly: FastMoq.Core.dll
Syntax
public enum ConstructorAmbiguityBehavior
Fields
| Name | Description |
|---|---|
| PreferParameterlessConstructor | When ambiguity remains, prefer the parameterless constructor from the current visibility scope if one exists; otherwise throw. |
| Throw | Throw an AmbiguousImplementationException when FastMoq cannot reduce the candidate set to a single constructor. |