public void GetPageOf(int index, int pageSize, int expectedPage) { var helper = new FormatPagingHelper(); int actualPage = helper.GetPageOf(index, pageSize); Assert.AreEqual(expectedPage, actualPage); }
public void GetReportPath(int pageIndex, string expectedPath) { var helper = new FormatPagingHelper { ReportName = @"C:\Path\ReportName", Extension = "ext", }; string actualPath = helper.GetReportPath(pageIndex); Assert.AreEqual(expectedPath, actualPath); }