AjTalk.Tests.Compilers.Vm.BytecodeCompilerTests.CompileGlobalVariable C# (CSharp) Метод

CompileGlobalVariable() приватный Метод

private CompileGlobalVariable ( ) : void
Результат void
        public void CompileGlobalVariable()
        {
            ModelParser parser = new ModelParser("AClass");
            IExpression expr = parser.ParseExpression();
            this.compiler.CompileExpression(expr);
            Assert.IsNotNull(this.block);
            Assert.AreEqual(1, this.block.NoGlobalNames);
            Assert.AreEqual(0, this.block.NoLocals);
            Assert.IsNotNull(this.block.ByteCodes);
            Assert.AreEqual(2, this.block.ByteCodes.Length);
            Assert.AreEqual(0, this.block.Arity);
        }