Class MockBehaviorOptions
Mutable container for the enabled MockFeatures on a Mocker instance.
Inherited Members
Namespace: FastMoq
Assembly: FastMoq.Core.dll
Syntax
public sealed class MockBehaviorOptions
Properties
Enabled
Gets or sets the currently enabled feature flags.
Declaration
public MockFeatures Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| MockFeatures |
LenientPreset
Gets the predefined lenient behavior preset.
Declaration
public static MockBehaviorOptions LenientPreset { get; }
Property Value
| Type | Description |
|---|---|
| MockBehaviorOptions |
StrictPreset
Gets the predefined strict behavior preset.
Declaration
public static MockBehaviorOptions StrictPreset { get; }
Property Value
| Type | Description |
|---|---|
| MockBehaviorOptions |
Methods
Clone()
Creates a copy of the current behavior options.
Declaration
public MockBehaviorOptions Clone()
Returns
| Type | Description |
|---|---|
| MockBehaviorOptions |
Has(MockFeatures)
Returns true when the supplied feature flag is enabled.
Declaration
public bool Has(MockFeatures feature)
Parameters
| Type | Name | Description |
|---|---|---|
| MockFeatures | feature | The feature flag to test. |
Returns
| Type | Description |
|---|---|
| bool |