zplCore.comzplCore.com

BarcodeAssertions

public sealed class BarcodeAssertions : ElementAssertions<BarcodeAssertions, ComplianceBarcode>

Assertions on one barcode: scan-proof (decode, grade, quiet zones) and measured geometry.

Properties

PropertyTypeDescription
Symbol { get; }ScanProofSymbolThe scan-proof result of this barcode (decoders, grade, quiet zones, findings); null when not found.

Methods

Method SignatureReturnsDescription
# Decodes()BarcodeAssertionsDecoders read the barcode back from the render, with the data its field asks for.
# Decodes(string expected)BarcodeAssertionsDecoders read exactly expected. GS1 data may be written as "(00)376…" (parentheses), raw with GS separators, or with "^FNC1"; it compares element by element.
# HasBarHeight(double atLeastMm)BarcodeAssertionsLinear barcodes: the bar height is at least atLeastMm mm.
# HasGrade(char atLeast)BarcodeAssertionsThe digital pre-check grade (modelled on ISO/IEC 15416/15415) is at least atLeast ('A'–'D').
# HasGrade(ScanProofGrade atLeast)BarcodeAssertionsThe digital pre-check grade is at least atLeast.
# HasQuietZones()BarcodeAssertionsThe quiet zones (clear space before and after the symbol) are at least what the symbology requires.
# HasXDimension(double minMm, double maxMm = 1.7976931348623157E+308)BarcodeAssertionsThe measured X-dimension (narrowest bar or module) is between minMm and maxMm.
# IsGs1(string? ai = default, string? value = default)BarcodeAssertionsThe barcode carries GS1 element strings (FNC1 first) – optionally with AI ai = value.
# IsSymbology(ComplianceSymbology symbology)BarcodeAssertionsThe barcode has the symbology symbology.