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}'"); }
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); }
private static void AssertEvaluatorTest(string expression, object expected) { var actual = ArmExpressionEvaluator.Evaluate(expression); Assert.AreEqual(expected, actual); }