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

CompileGlobalVariable() private method

private CompileGlobalVariable ( ) : void
return void
        public void CompileGlobalVariable()
        {
            Parser compiler = new Parser("AClass");
            Block block = compiler.CompileBlock();
            Assert.IsNotNull(block);
            Assert.AreEqual(1, block.NoGlobalNames);
            Assert.AreEqual(0, block.NoLocals);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(2, block.ByteCodes.Length);
            Assert.AreEqual(0, block.Arity);
        }
ParserTests