public void CreatePagesLinksTest() { #region Arrange var elements = new List <string>() { "1", "2", "3" }.AsQueryable(); var pagedList = PagedList <string> .Create(elements, 2, 1); var target = new Pagination(properties.Object); var parameters = new PostResourceParameters(); PrepareObjects(); #endregion Arrange #region Act var result = target.CreatePagesLinks(pagedList, parameters, new ResourceUriHelper(urlHelper.Object)); #endregion Act #region Assert Assert.IsTrue(result.HasNext); Assert.IsTrue(result.HasPrevious); Assert.AreEqual("GetStrings", result.Next); #endregion Assert }