Exemple #1
0
 public void TestGetPageCount_ZeroPageSize()
 {
     IndexUtil.GetPageCount(10, 0);
 }
Exemple #2
0
 public void TestGetPageCount()
 {
     Assert.AreEqual(1, IndexUtil.GetPageCount(0, 10));
     Assert.AreEqual(1, IndexUtil.GetPageCount(10, 10));
     Assert.AreEqual(2, IndexUtil.GetPageCount(11, 10));
 }
Exemple #3
0
 public void TestGetPageCount_NegativeElemCount()
 {
     IndexUtil.GetPageCount(-1, 10);
 }