Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void QrCodeHasFieldOrigin()
        {
            var sut = new QrCodeElement();

            Assert.Contains("^FO", sut.ToString());
        }
Esempio n. 3
0
        public void QrCodeHasFieldSeperator()
        {
            var sut = new QrCodeElement();

            Assert.Contains("^FS", sut.ToString());
        }
Esempio n. 4
0
        public void QrCodeIsLabelContentElement()
        {
            var sut = new QrCodeElement();

            Assert.IsAssignableFrom <LabelContent>(sut);
        }
Esempio n. 5
0
        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);
 }