Table of Contents

Class IntegerGenerator

Namespace
Hegel
Assembly
Hegel.dll

Draws 32-bit integers in a range.

public sealed class IntegerGenerator : ValueGenerator<int>
Inheritance
IntegerGenerator
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 int DoDraw(TestCase tc)

Parameters

tc TestCase

Returns

int

Max(int)

At most max.

public IntegerGenerator Max(int max)

Parameters

max int

Returns

IntegerGenerator

Min(int)

At least min.

public IntegerGenerator Min(int min)

Parameters

min int

Returns

IntegerGenerator