AjTalk.Tests.Compiler.SimpleCompilerTests.CompileSimpleArithmeticWithParenthesis C# (CSharp) Méthode

CompileSimpleArithmeticWithParenthesis() private méthode

private CompileSimpleArithmeticWithParenthesis ( ) : void
Résultat 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);
        }
SimpleCompilerTests