Table of Contents

Class DomainGenerator

Namespace
Hegel
Assembly
Hegel.dll

Draws domain names.

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

Parameters

tc TestCase

Returns

string

MaxLength(int)

At most maxLength characters, between 4 and 255.

public DomainGenerator MaxLength(int maxLength)

Parameters

maxLength int

Returns

DomainGenerator