public void Test2() { var member = new Stack <string>(); var method = new Stack <int>(); var repo = new SortExpressionParser(); repo.Parsing <Fee>(i => i.OrderBy(j => new { j.Name, j.Age, j.Email }), member, method); Assert.Equal(method.Count, (int)3); }
public void Test1() { var member = new Stack <string>(); var method = new Stack <int>(); var repo = new SortExpressionParser(); repo.Parsing <Fee>(i => i.OrderBy(j => j.Name).ThenBy(j => j.Age).ThenByDescending(j => j.Email), member, method); Assert.Equal(method.Count, (int)3); }