public void QrCodeIsCreatedWithDefaults() { var sut = new QrCodeElement(); Assert.Equal(ZPLForgeDefaults.Elements.QrCode.ErrorCorrection, sut.ErrorCorrection); Assert.Equal(ZPLForgeDefaults.Elements.QrCode.MagnificationFactor, sut.MagnificationFactor); Assert.Equal(ZPLForgeDefaults.Elements.QrCode.MaskValue, sut.MaskValue); Assert.Equal(ZPLForgeDefaults.Elements.QrCode.QrModel, sut.QrModel); }
public void QrCodeHasFieldOrigin() { var sut = new QrCodeElement(); Assert.Contains("^FO", sut.ToString()); }
public void QrCodeHasFieldSeperator() { var sut = new QrCodeElement(); Assert.Contains("^FS", sut.ToString()); }
public void QrCodeIsLabelContentElement() { var sut = new QrCodeElement(); Assert.IsAssignableFrom <LabelContent>(sut); }
public void QrCodeContainsCorrectElementCommand() { var sut = new QrCodeElement(); Assert.Contains("^BQ", sut.ToString()); }
public LabelBuilder AddQrCode(QrCodeElement qrCode) { Context.Content.Add(qrCode ?? throw new ArgumentNullException(nameof(qrCode))); return(this); }