public void PrintDimensionTest()
        {
            var thickness          = new Thickness(10, 10, 10, 10);
            TestPrintDimension tpd = new TestPrintDimension(thickness);

            Size pageSize = new Size(500, 1000);

            SetPageSizeToPrintDimension(tpd, pageSize);

            double totalWidth = pageSize.Width - thickness.Left - thickness.Right;

            Assert.That(tpd.PrintablePageSize.Width, Is.EqualTo(totalWidth));

            double pieces        = 5; // sum of TestPrintDimensions
            double widthPerPiece = (totalWidth - 100) / pieces;

            Assert.That(tpd.Column1, Is.EqualTo(1 * widthPerPiece), $"{nameof(tpd.Column1)}");
            Assert.That(tpd.Column2, Is.EqualTo(3 * widthPerPiece), $"{nameof(tpd.Column2)}");
            Assert.That(tpd.Column3, Is.EqualTo(100), $"{nameof(tpd.Column3)}");
            Assert.That(tpd.Column4, Is.EqualTo(1 * widthPerPiece), $"{nameof(tpd.Column4)}");
        }
        public void PrintDimensionTest()
        {
            var thickness = new Thickness(10, 10, 10, 10);
            TestPrintDimension tpd = new TestPrintDimension(thickness);

            Size pageSize = new Size(500, 1000);
            SetPageSizeToPrintDimension(tpd, pageSize);

            double totalWidth = pageSize.Width - thickness.Left - thickness.Right;

            Assert.That(tpd.PrintablePageSize.Width, Is.EqualTo(totalWidth));

            double pieces = 5; // sum of TestPrintDimensions
            double widthPerPiece = (totalWidth - 100) / pieces;

            Assert.That(tpd.Column1, Is.EqualTo(1 * widthPerPiece), $"{nameof(tpd.Column1)}");
            Assert.That(tpd.Column2, Is.EqualTo(3 * widthPerPiece), $"{nameof(tpd.Column2)}");
            Assert.That(tpd.Column3, Is.EqualTo(100), $"{nameof(tpd.Column3)}");
            Assert.That(tpd.Column4, Is.EqualTo(1 * widthPerPiece), $"{nameof(tpd.Column4)}");
        }