public void CheckPlainSection()
        {
            MeasurementService s = new MeasurementService(this.graphics);
            Rectangle          r = new Rectangle(section.Location, section.Size);

            s.FitSectionToItems(this.section);
            Assert.AreEqual(r.Location, s.Rectangle.Location);
        }
        public void ReportItemFitInSection()
        {
            MeasurementService s = new MeasurementService(this.graphics);
            Rectangle          r = new Rectangle(section.Location, section.Size);

            this.section.Items.Clear();
            BaseReportItem item = new BaseReportItem();

            item.Location = new Point(10, 10);
            item.Size     = new Size(50, 50);
            this.section.Items.Add(item);
            s.FitSectionToItems(this.section);
            Assert.AreEqual(r.Location, s.Rectangle.Location);
        }