示例#1
0
        public void Eval_JsonArrayComplex_Atom()
        {
            //------------Setup for test--------------------------
            var env = CreateEnvironmentWithData();
            //------------Execute Test---------------------------
            var res = EvaluationFunctions.evalJson(env, 0, false, EvaluationFunctions.parseLanguageExpressionWithoutUpdate("1"));

            //------------Assert Results-------------------------
            Assert.AreEqual("1", CommonFunctions.evalResultToString(res));
        }
示例#2
0
        public void Eval_JsonArrayComplex_ComplexExp()
        {
            //------------Setup for test--------------------------
            var env = CreateEnvironmentWithData();
            //------------Execute Test---------------------------
            var res = EvaluationFunctions.evalJson(env, 0, false, EvaluationFunctions.parseLanguageExpressionWithoutUpdate("[[@arrayObj().Name]] [[@arrayObj().Name]]", ShouldTypeCast.Yes));

            //------------Assert Results-------------------------
            Assert.AreEqual("bobe bobe", CommonFunctions.evalResultToString(res));
        }