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

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

private CompileSimpleCommand ( ) : void
Результат void
        public void CompileSimpleCommand()
        {
            ModelParser parser = new ModelParser("nil invokeWith: 10");
            IExpression expr = parser.ParseExpression();
            this.compiler.CompileExpression(expr);
            Assert.IsNotNull(this.block);
            Assert.AreEqual(2, this.block.NoConstants);
            Assert.AreEqual(0, this.block.NoLocals);
            Assert.IsNotNull(this.block.ByteCodes);
            Assert.AreEqual(6, this.block.ByteCodes.Length);
            Assert.AreEqual(0, this.block.Arity);
        }