Class RegexGenerator
- Namespace
- Hegel
- Assembly
- Hegel.dll
Draws strings matching a regular expression.
public sealed class RegexGenerator : ValueGenerator<string>
- Inheritance
-
RegexGenerator
- 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
Methods
Alphabet(TextGenerator)
Draw the characters a wildcard matches from characters.
public RegexGenerator Alphabet(TextGenerator characters)
Parameters
charactersTextGenerator
Returns
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
tcTestCase
Returns
Fullmatch(bool)
Whether the whole string must match (the default), or only a substring.
public RegexGenerator Fullmatch(bool fullmatch)
Parameters
fullmatchbool