public async Task Page_boundary()
{
// In this test we're checking that the page count is correct when there are
// exactly pagesize*N records.
// Create some records
const int count = 15;
long id = await InsertRecordsAsync(count);
// Fetch em
var r = await db.PageAsync<poco>(3, 5, "SELECT * from petapoco ORDER BY id");
// Check other stats
Assert.AreEqual(r.Items.Count, 5);
Assert.AreEqual(r.CurrentPage, 3);
Assert.AreEqual(r.ItemsPerPage, 5);
Assert.AreEqual(r.TotalItems, 15);
Assert.AreEqual(r.TotalPages, 3);
}