Class ValueGenerator<T>
- Namespace
- Hegel
- Assembly
- Hegel.dll
A printable generator that prints its values with Repr(object?).
public abstract class ValueGenerator<T> : PrintableGenerator<T>
Type Parameters
TThe type of value drawn.
- Inheritance
-
Generator<T>ValueGenerator<T>
- Derived
- Inherited Members
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 abstract T DoDraw(TestCase tc)
Parameters
tcTestCase
Returns
- T
DoDrawAndPrint(TestCase, Printer)
Draw one value, printing it to printer (which may be Noop).
Draw its parts through DrawAndPrint<T>(Generator<T>, Printer).
protected override sealed T DoDrawAndPrint(TestCase tc, Printer printer)
Parameters
Returns
- T