public record ZplAssertionFailure
One failed label assertion: what was expected, what the label prints instead, where (label, element position, ZPL line) and the image files written for it.
Constructors
| Signature | Description |
# ZplAssertionFailure() | |
Properties
| Property | Type | Description |
ApprovedPath { get; init; } | string | Snapshot assertions: the approved image the label was compared with. |
required Assertion { get; init; } | string | The assertion chain that failed, e.g. Barcode("SSCC").Decodes("(00)…"). |
Column { get; init; } | int | 1-based ZPL source column (0 when unknown). |
Details { get; init; } | IReadOnlyList<(string, string)> | Details (label, element, source excerpt, measured values), one entry per line. |
DiffPath { get; init; } | string | Snapshot assertions: overlay of approved and received (black = both, red = only approved, blue = only received). |
ImagePath { get; init; } | string | The label rendered with the failing elements outlined (red) and related elements (orange), or null. |
LabelIndex { get; init; } | int | 0-based label index (print order), -1 when the failure is not tied to one label. |
Line { get; init; } | int | 1-based ZPL source line of the failing element (0 when unknown). |
ReceivedPath { get; init; } | string | Snapshot assertions: the image the label renders now (written next to the approved one). |
required Summary { get; init; } | string | One-line statement of what is wrong. |