public void DetailStart() { SectionBounds sectionBounds = new SectionBounds(new ReportSettings(), true); BaseSection baseSection = new BaseSection(); baseSection.Location = new Point(50, 50); baseSection.Size = new Size(727, 60); sectionBounds.MeasurePageHeader(baseSection); Point p = new Point(sectionBounds.PageHeaderRectangle.Left, sectionBounds.PageHeaderRectangle.Bottom + sectionBounds.Gap); Assert.AreEqual(p, sectionBounds.DetailStart); }
public void MeasurePageHeader() { SectionBounds sectionBounds = new SectionBounds(new ReportSettings(), true); BaseSection baseSection = new BaseSection(); baseSection.Location = new Point(50, 50); baseSection.Size = new Size(727, 60); sectionBounds.MeasurePageHeader(baseSection); Assert.AreEqual(baseSection.Size.Height + sectionBounds.Gap, sectionBounds.PageHeaderRectangle.Size.Height, "ItemsCollection is empty, so Size.Height should be '0'"); Assert.AreEqual(sectionBounds.MarginBounds.Width, sectionBounds.PageHeaderRectangle.Width); }