AjTalk.Tests.Compiler.ParserTests.CompileDynamicArray C# (CSharp) Method

CompileDynamicArray() private method

private CompileDynamicArray ( ) : void
return void
        public void CompileDynamicArray()
        {
            Parser parser = new Parser("{a. b. 3}");
            var result = parser.CompileBlock();
            Assert.IsNotNull(result);
            Assert.IsNotNull(result.ByteCodes);
            BlockDecompiler decompiler = new BlockDecompiler(result);
            var ops = decompiler.Decompile();
            Assert.IsNotNull(ops);
            Assert.AreEqual(4, ops.Count);
            Assert.AreEqual("GetGlobalVariable a", ops[0]);
            Assert.AreEqual("GetGlobalVariable b", ops[1]);
            Assert.AreEqual("GetConstant 3", ops[2]);
            Assert.AreEqual("MakeCollection 3", ops[3]);
        }
ParserTests