public void FormDatalistData_FilteredRows() { Int32 actual = datalist.FormDatalistData(datalist.GetModels(), new[] { new TestModel() }.AsQueryable(), datalist.GetModels().Take(1)).FilteredRows; Int32 expected = datalist.GetModels().Count(); Assert.Equal(expected, actual); }