zplCore.comzplCore.com

ZplTestOptions

public record ZplTestOptions

Per-label settings of ZplAssert.Label. Unset values come from ZplAssert.Settings.

Constructors

SignatureDescription
# ZplTestOptions()

Properties

PropertyTypeDescription
AcceptSnapshots { get; init; }bool?Accept snapshots of this label (overrides ZplAssertSettings.AcceptSnapshots).
Clock { get; init; }DateTimeClock for ^FC/^SL date fields, fixed by default (2026-01-01 12:00) so snapshots stay stable.
Dpi { get; init; }int?Print resolution in dpi (152, 203, 300, 600).
FailureImageDirectory { get; init; }stringFailure image folder for this label (overrides ZplAssertSettings.FailureImageDirectory).
FieldValues { get; init; }IReadOnlyDictionary<int, string>Values for ^FN fields (also in formats recalled with ^XF).
HeightMm { get; init; }double?Label height in mm when the ZPL has no ^LL.
Robustness { get; init; }boolRun the scan-proof robustness simulations (slower) for barcode assertions.
SnapshotDirectory { get; init; }stringSnapshot folder for this label (overrides ZplAssertSettings.SnapshotDirectory).
WidthMm { get; init; }double?Label width in mm when the ZPL has no ^PW.
WriteFailureImages { get; init; }bool?Write failure images for this label (overrides ZplAssertSettings.WriteFailureImages).