Class IpAddressGenerator
- Namespace
- Hegel
- Assembly
- Hegel.dll
Draws IP addresses as text: a mix of IPv4 and IPv6 unless narrowed.
public sealed class IpAddressGenerator : ValueGenerator<string>
- Inheritance
-
IpAddressGenerator
- 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
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
V4()
Only IPv4 addresses.
public IpAddressGenerator V4()
Returns
V6()
Only IPv6 addresses.
public IpAddressGenerator V6()