public void AssignEvaluation_LanguageExpressionToJsonExpression_Scalar()
        {
            var parsed = EvaluationFunctions.parseLanguageExpressionWithoutUpdate("[[@Child]]");
            var exp    = AssignEvaluation.languageExpressionToJsonIdentifier(parsed);

            Assert.IsNotNull(exp);
        }
        public void AssignEvaluation_LanguageExpressionToJsonExpression()
        {
            var parsed = EvaluationFunctions.parseLanguageExpressionWithoutUpdate("[[Child(1).Name]]");
            var exp    = AssignEvaluation.languageExpressionToJsonIdentifier(parsed);

            Assert.IsTrue(exp.IsIndexNestedNameExpression);
            var exp2  = (exp as LanguageAST.JsonIdentifierExpression.IndexNestedNameExpression).Item;
            var index = exp2.Index;

            Assert.IsTrue(index.IsIntIndex);
            var bob = (index as LanguageAST.Index.IntIndex).Item;

            Assert.AreEqual(1, bob);
            Assert.AreEqual("Child", exp2.ObjectName);
            Assert.IsTrue(exp2.Next.IsNameExpression);
            var x2 = (exp2.Next as LanguageAST.JsonIdentifierExpression.NameExpression).Item;

            Assert.AreEqual(x2.Name, "Name");
        }
 public void AssignEvaluation_LanguageExpressionToJsonExpression_Complex()
 {
     var parsed = EvaluationFunctions.parseLanguageExpressionWithoutUpdate("[[[[bob]]]]");
     var exp    = AssignEvaluation.languageExpressionToJsonIdentifier(parsed);
 }