Skip to main content
Version: 0.3.x (0.3.0)

Namespace AdCodicem.ValueObjects.Testing.Data

Classes​

ValueObjectSampler

Draws value objects their own rules accept, from the schema they declare: test data that never restates a rule the type already holds.

ValueObjectSamplerOptions

How a draws: how many candidates it tries, how often it takes a known value of an open set, how long a string without a maximum length gets, and the generators of the rules no schema carries.

ValueObjectSamplingException

Thrown when a sampler cannot draw a value its type accepts: no candidate, drawn from its schema or from the generator registered for it, passed its rules, and it declares no example they accept.

Structs​

SchemaViolation<TValue>

A value the schema of a value object rules out, with the rule it breaks.