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

CompileDynamicArray() private method

private CompileDynamicArray ( ) : void
return void
        public void CompileDynamicArray()
        {
            var result = this.compiler.CompileBlock("{a. b. 3}");
            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]);
        }