コード例 #1
0
        public void Sort_ByColumn()
        {
            lookup.Filter.Sort = nameof(TestModel.Count);

            IQueryable <TestModel> expected = lookup.GetModels().OrderBy(model => model.Count);
            IQueryable <TestModel> actual   = lookup.Sort(lookup.GetModels());

            Assert.Equal(expected, actual);
        }