Example #1
0
        public void StartIndex_should_return_correct_result(int?page, int itemsPerPage, int expected)
        {
            int actual = PageCalculator.StartIndex(page, itemsPerPage);

            Assert.Equal(expected, actual);
        }
Example #2
0
 public void StartIndex_Should_Return_Zero_When_Page_Is_Zero_And_RowPerPage_Is_Ten()
 {
     Assert.Equal(0, PageCalculator.StartIndex(0, 10));
 }