Пример #1
0
        public void CustomFunctionTwoArgTest()
        {
            Func <string, string, object> split = (s1, c) => s1.Split(c[0]);

            var functions = new Dictionary <string, CustomFunction>
            {
                ["split"] = CustomFunction.Create(split)
            };

            RunTest(expected: new [] { "ab", "cd" }, query: "split('ab|cd', '|')", customFunctions: functions);
        }