Table of Contents

Class BinaryGenerator

Namespace
Hegel
Assembly
Hegel.dll

Draws byte arrays.

public sealed class BinaryGenerator : ValueGenerator<byte[]>
Inheritance
BinaryGenerator
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 byte[] DoDraw(TestCase tc)

Parameters

tc TestCase

Returns

byte[]

MaxSize(int)

At most maxSize bytes.

public BinaryGenerator MaxSize(int maxSize)

Parameters

maxSize int

Returns

BinaryGenerator

MinSize(int)

At least minSize bytes.

public BinaryGenerator MinSize(int minSize)

Parameters

minSize int

Returns

BinaryGenerator