public void Sort_ByColumn() { datalist.Filter.Sort = "Count"; IQueryable <TestModel> expected = datalist.GetModels().OrderBy(model => model.Count); IQueryable <TestModel> actual = datalist.Sort(datalist.GetModels()); Assert.Equal(expected, actual); }