Table of Contents

Class ConjectureSettingsAttribute

Namespace
Conjecture.Core
Assembly
Conjecture.Core.dll

Assembly-level attribute to configure default settings for all property tests in the assembly.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class ConjectureSettingsAttribute : Attribute
Inheritance
ConjectureSettingsAttribute
Inherited Members

Properties

DatabasePath

Path to the example database directory.

public string DatabasePath { get; init; }

Property Value

string

MaxExamples

Maximum number of examples to generate.

public int MaxExamples { get; init; }

Property Value

int

MaxStrategyRejections

Maximum number of times a strategy may reject a value.

public int MaxStrategyRejections { get; init; }

Property Value

int

MaxUnsatisfiedRatio

Maximum ratio of unsatisfied assumptions.

public int MaxUnsatisfiedRatio { get; init; }

Property Value

int

Targeting

Whether to run a targeting phase after generation.

public bool Targeting { get; init; }

Property Value

bool

TargetingProportion

Fraction of MaxExamples budget allocated to the targeting phase.

public double TargetingProportion { get; init; }

Property Value

double

UseDatabase

Whether to use the example database.

public bool UseDatabase { get; init; }

Property Value

bool

Methods

Apply(ConjectureSettings)

Returns a ConjectureSettings with explicitly-set values overriding baseline.

public ConjectureSettings Apply(ConjectureSettings baseline)

Parameters

baseline ConjectureSettings

Returns

ConjectureSettings