public void CorrectNumberOfPageTokensAreGenerated() { for (int i = 1; i <= 50; i++) { for (int j = 1; j < 150; j++) { var maxResults = i; var numberItems = j; var range = new PageTokenRequestRange(0, numberItems, maxResults); Assert.AreEqual(range.PageTokens.Count(), calcNumberofPageTokens(numberItems, maxResults)); } } }
public void InvalidStartIndex() { var range = new PageTokenRequestRange(-1); }
public void InvalidNumberOfItems() { var range = new PageTokenRequestRange(0, 0); }
public void InvalidMaxNumberOfItems() { var range = new PageTokenRequestRange(0, 0, 0); //var range2 = new PageTokenRequestRange(0, 0 , 50); }