ZplTestOptions
public record ZplTestOptionsPer-label settings of ZplAssert.Label. Unset values come from ZplAssert.Settings.
Constructors
| Signature | Description |
|---|---|
# ZplTestOptions() |
Properties
| Property | Type | Description |
|---|---|---|
AcceptSnapshots { get; init; } | bool? | Accept snapshots of this label (overrides ZplAssertSettings.AcceptSnapshots). |
Clock { get; init; } | DateTime | Clock 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; } | string | Failure 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; } | bool | Run the scan-proof robustness simulations (slower) for barcode assertions. |
SnapshotDirectory { get; init; } | string | Snapshot 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). |

