public static void RunSample()
        {
            //var expression = "concat('hello', concat('brave', 'new'), 'world')";
            var expression = "toLower('HELLO')";

            Console.WriteLine($"expression = '{expression}'");

            var result = ArmExpressionEvaluator.Evaluate(expression);

            Console.WriteLine($"result = '{result}'");
        }
Exemple #2
0
        private static void AssertEvaluatorTestThrows(string expression, Type expectedType, string expectedMessage)
        {
            var ex = Assert.Throws(
                expectedType,
                () =>
            {
                var actual = ArmExpressionEvaluator.Evaluate(expression);
            }
                );

            Assert.AreEqual(expectedMessage, ex.Message);
        }
Exemple #3
0
        private static void AssertEvaluatorTest(string expression, object expected)
        {
            var actual = ArmExpressionEvaluator.Evaluate(expression);

            Assert.AreEqual(expected, actual);
        }