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

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

private CompileSimpleCommandWithParenthesis ( ) : void
Результат void
        public void CompileSimpleCommandWithParenthesis()
        {
            ModelParser parser = new ModelParser("a := b with: (anObject class)");
            IExpression expr = parser.ParseExpression();
            this.compiler.CompileExpression(expr);
            Assert.IsNotNull(this.block);
            Assert.AreEqual(1, this.block.NoConstants);
            Assert.AreEqual(3, this.block.NoGlobalNames);
            Assert.AreEqual(0, this.block.NoLocals);
            Assert.IsNotNull(this.block.ByteCodes);
            Assert.AreEqual(10, this.block.ByteCodes.Length);
            Assert.AreEqual(0, this.block.Arity);
        }