Exemple #1
0
            void Specify_expandable_criterion_with_linq()
            {
                var criteria1 = _linq.Predicate(x => x.Item1 > 1000);
                var criteria2 = _linq.Predicate(x => criteria1.Invoke(x) || x.Item2.Contains("a"));

                criteria2.Expand().ToString().Should().Be("x => ((x.Item1 > 1000) OrElse x.Item2.Contains(\"a\"))");
            }