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

CompileSimpleArithmeticWithParenthesis() private method

private CompileSimpleArithmeticWithParenthesis ( ) : void
return void
        public void CompileSimpleArithmeticWithParenthesis()
        {
            Block block = this.compiler.CompileBlock("1 * (2 + 3)");
            Assert.IsNotNull(block);
            Assert.AreEqual(5, block.NoConstants);
            Assert.AreEqual(0, block.NoLocals);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(12, block.ByteCodes.Length);
            Assert.AreEqual(0, block.Arity);
        }