public void Test_MeasureBarcodeUnit(MeasureBarcodeType heightType, float heightValue, string caseName)
        {
            MeasureBarcodeUnit height = new MeasureBarcodeUnit(0);

            if (heightType == MeasureBarcodeType.Percent)
            {
                height = MeasureBarcodeUnit.FromPercent(heightValue);
            }
            else if (heightType == MeasureBarcodeType.Pixel)
            {
                height = MeasureBarcodeUnit.FromPixel(heightValue);
            }
            height.Type.Should().Be(heightType);
            height.Value.Should().Be(heightValue);
        }
        public void QuickStart_BarcodeGS128()
        {
            byte[] dataBarcodeGS128 = BarcodesMaker.GetBarcode("012345678912ABCD",
                                                               BarcodeType.GS1_128A,
                                                               Color.Black,
                                                               Color.White,
                                                               true,
                                                               MeasureBarcodeUnit.FromPixel(0));
            using (Image image = Image.FromStream(new MemoryStream(dataBarcodeGS128)))
            {
                image.Save("barcodeGS128.png", System.Drawing.Imaging.ImageFormat.Png);
            }

            FileComparer.AreEqual("etalon_barcodeGS128.png", "barcodeGS128.png").Should().Be(true);
        }
        public void QuickStart_BarcodeEAN13_Colors_NoQuiteZones()
        {
            byte[] dataBarcode13 = BarcodesMaker.GetBarcode("0123456789123",
                                                            BarcodeType.EAN_13,
                                                            Color.Green,
                                                            Color.White,
                                                            true,
                                                            MeasureBarcodeUnit.FromPixel(0),
                                                            2,
                                                            false);
            using (Image image = Image.FromStream(new MemoryStream(dataBarcode13)))
            {
                image.Save("barcodeEAN13_2.png", System.Drawing.Imaging.ImageFormat.Png);
            }

            FileComparer.AreEqual("etalon_barcodeEAN13_2.png", "barcodeEAN13_2.png").Should().Be(true);
        }