示例#1
0
        public void ParseExpressionWithoutUpdateStrict_InvalidIndexRecordSetUpdate()
        {
            //------------Setup for test--------------------------
            var data = CreateEnvironmentWithData();

            //------------Execute Test---------------------------
            var x = EvaluationFunctions.parseLanguageExpressionWithoutUpdateStrict("[[rec(1)");

            //------------Assert Results-------------------------
            Assert.AreEqual(x.IsWarewolfAtomExpression, true);
        }
示例#2
0
        public void ParseLanguageExpressionWithoutUpdateStrict_RecsetIndexExpression()
        {
            //------------Setup for test--------------------------
            var data = CreateEnvironmentWithData();

            //------------Execute Test---------------------------
            var x = EvaluationFunctions.parseLanguageExpressionWithoutUpdateStrict("[[rec([[a]])]]");

            //------------Assert Results-------------------------
            Assert.AreEqual(x.IsRecordSetNameExpression, true);
            var rec = x as LanguageAST.LanguageExpression.RecordSetNameExpression;

            Assert.IsTrue(rec.Item.Index.IsIndexExpression);
        }