public void BeginInitTest() { IOrderedQueryable <GenericParameterHelper> query = GetQuery(); bool autoLoad = true; var target = new PagedQueryable <GenericParameterHelper>(query, autoLoad); target.BeginInit(); target.Reset(); }
public void SortColumnTest() { IOrderedQueryable <GenericParameterHelper> query = GetQuery(); bool autoLoad = true; var target = new PagedQueryable <GenericParameterHelper>(query, autoLoad); target.BeginInit(); target.SortColumn = "Data"; target.EndInit(); Assert.AreEqual(1, target.CurrentPage); }