public void RefreshTest() { IOrderedQueryable <GenericParameterHelper> query = GetQuery(); bool autoLoad = true; var target = new PagedQueryable <GenericParameterHelper>(query, autoLoad); target.Reset(); Assert.AreEqual(1, target.CurrentPage); }
public void BeginInitTest() { IOrderedQueryable <GenericParameterHelper> query = GetQuery(); bool autoLoad = true; var target = new PagedQueryable <GenericParameterHelper>(query, autoLoad); target.BeginInit(); target.Reset(); }
public void ZeroCountQueryTest() { IOrderedQueryable <GenericParameterHelper> query = new List <GenericParameterHelper>().AsQueryable().OrderBy(i => i.Data); bool autoLoad = true; var target = new PagedQueryable <GenericParameterHelper>(query, autoLoad); target.Reset(); Assert.AreEqual(0, target.Items.Count); }