31 types
ZplCore.Testing
Fluent semantic label assertions (ZplAssert, LabelAssertions, BarcodeAssertions, TextAssertions), element selectors, and printer fit assertions.
| Type | Kind | Summary |
|---|---|---|
| BarcodeAssertions | class | Assertions on one barcode: scan-proof (decode, grade, quiet zones) and measured geometry. |
| ElementAssertions<TSelf, TElement> | class | Assertions shared by text and barcode elements: position and layout. When the element could not be selected (inside a ZplAssert… |
| ElementChange | record | A semantic difference between two renders of a label. |
| ElementChangeKind | enum | Kind of a ElementChange. |
| IZplPrinterFit | interface | Extension point of LabelAssertions.FitsPrinter and zplcore check --printer: anything that can tell whether a label prints corre… |
| LabelAssertions | class | Fluent assertions on a rendered ZPL job. Job-level assertions (LabelAssertions.HasLabels, LabelAssertions.Renders, LabelAsserti… |
| PrinterFitContext | record | What a printer-fit check sees: the ZPL, the resolution it was rendered at and every measured label. |
| PrinterFitIssue | record | A reason why a label does not fit a printer. |
| PrinterProfileFit | class | A Printer Twin profile (PrinterProfiles) as IZplPrinterFit: LabelAssertions.FitsPrinter and zplcore check --printer ZD421d-203 … |
| PrinterProfileFitExtensions | class | PrinterProfile helpers for the assertions. |
| PrinterSpec | class | Data-sheet printer limits: resolution, maximum print width and label length. Checks that the label was designed for the printer… |
| SemanticDiff | class | Element-level diff of two renders (used by snapshots and by zplcore check --baseline). |
| SnapshotDocument | record | Semantic snapshot (name.approved.json next to the approved PNGs): resolution, label sizes and the elements with position and co… |
| SnapshotElement | record | One element of a semantic snapshot: what was drawn where (dots), independent of the pixels. |
| SnapshotLabel | record | One label of a semantic snapshot. |
| SnapshotLabelResult | record | Comparison result of one label of a snapshot. |
| SnapshotOutcome | enum | Outcome of a snapshot comparison. |
| SnapshotResult | record | Result of SnapshotStore.Verify. |
| SnapshotStore | class | Snapshot folder with the approval workflow. Files per snapshot name: name.approved.png (label 1), name.label2.approved.png … – … |
| SnapshotSubject | record | What a snapshot stores for a render: one PNG per label and the semantic document. |
| SnapshotTolerance | record | How much a rendered label may differ from its approved snapshot. A label passes when the changed pixels (after ignoring ink tha… |
| TextAssertions | class | Assertions on one text field. |
| ZplAssert | class | Entry point of the semantic label assertions. ZplAssert.Label(zpl) renders the label once and returns a fluent LabelAssertions … |
| ZplAssertSettings | class | Process-wide defaults for ZplAssert. |
| ZplAssertionException | class | Thrown when a label assertion fails. Works with every test framework (any exception fails a test); see ZplAssertSettings.Except… |
| ZplAssertionFailure | record | One failed label assertion: what was expected, what the label prints instead, where (label, element position, ZPL line) and the… |
| ZplAssertionScope | class | Collects every failed label assertion inside the scope and throws them together when the scope is disposed, so one test run sho… |
| ZplPrinterFit | class | Factory helpers for IZplPrinterFit. |
| ZplSelectors | class | How LabelAssertions.Barcode and LabelAssertions.Text find elements. The first rule that matches anything wins. |
| ZplTestFrameworks | class | Optional adapters that turn a ZplAssertionException into the assertion exception of a test framework, so the framework reports … |
| ZplTestOptions | record | Per-label settings of ZplAssert.Label. Unset values come from ZplAssert.Settings. |

