Table of Contents

Class SubsequenceGenerator<T>

Namespace
Hegel
Assembly
Hegel.dll

Draws subsequences of a sequence: its elements in order, some left out.

public sealed class SubsequenceGenerator<T> : ValueGenerator<List<T>>

Type Parameters

T
Inheritance
SubsequenceGenerator<T>
Inherited Members

Properties

Label

The span label the engine files this generator's draws under. Defaults to a label derived from the class's full name.

public override ulong Label { get; }

Property Value

ulong

Methods

DoDraw(TestCase)

Draw one value. Called inside a span labelled Label: draw from another generator through DrawSilent<T>(Generator<T>), which opens its span, rather than by calling its hook.

protected override List<T> DoDraw(TestCase tc)

Parameters

tc TestCase

Returns

List<T>

MaxSize(int)

At most maxSize elements.

public SubsequenceGenerator<T> MaxSize(int maxSize)

Parameters

maxSize int

Returns

SubsequenceGenerator<T>

MinSize(int)

At least minSize elements.

public SubsequenceGenerator<T> MinSize(int minSize)

Parameters

minSize int

Returns

SubsequenceGenerator<T>