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

CompileBlockWithTwoParameters() private method

private CompileBlockWithTwoParameters ( ) : void
return void
        public void CompileBlockWithTwoParameters()
        {
            Parser compiler = new Parser(" :a :b | a+b");
            Block block = compiler.CompileBlock();

            Assert.IsNotNull(block);
            Assert.AreEqual(0, block.NoLocals);
            Assert.AreEqual(0, block.NoGlobalNames);
            Assert.AreEqual(1, block.NoConstants);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(7, block.ByteCodes.Length);
            Assert.AreEqual(2, block.Arity);
        }
ParserTests