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

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

private CompileTwoCommandsUsingSemicolon ( ) : void
Результат void
        public void CompileTwoCommandsUsingSemicolon()
        {
            ModelParser parser = new ModelParser("nil invokeWith: 10; invokeWith: 20");
            this.compiler.CompileExpressions(parser.ParseExpressions());
            Assert.IsNotNull(this.block);
            Assert.AreEqual(3, this.block.NoConstants);
            Assert.AreEqual(0, this.block.NoLocals);
            Assert.IsNotNull(this.block.ByteCodes);
            Assert.AreEqual(12, this.block.ByteCodes.Length);
            Assert.AreEqual(0, this.block.Arity);
        }