示例#1
0
 public void TestGetPageCount_ZeroPageSize()
 {
     IndexUtil.GetPageCount(10, 0);
 }
示例#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));
 }
示例#3
0
 public void TestGetPageCount_NegativeElemCount()
 {
     IndexUtil.GetPageCount(-1, 10);
 }