예제 #1
0
        public void GetPageOf(int index, int pageSize, int expectedPage)
        {
            var helper     = new FormatPagingHelper();
            int actualPage = helper.GetPageOf(index, pageSize);

            Assert.AreEqual(expectedPage, actualPage);
        }
예제 #2
0
        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);
        }