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

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

private CompileTwoCommands ( ) : void
Результат void
        public void CompileTwoCommands()
        {
            ModelParser parser = new ModelParser("nil invokeWith: 10. Global := 20");
            this.compiler.CompileExpressions(parser.ParseExpressions());
            Assert.IsNotNull(this.block);
            Assert.AreEqual(3, this.block.NoConstants);
            Assert.AreEqual(1, 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);
        }