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); }
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); }