AjTalk.Tests.Compiler.SimpleCompilerTests.CompileBlockWithTwoParameters C# (CSharp) Метод

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

private CompileBlockWithTwoParameters ( ) : void
Результат void
        public void CompileBlockWithTwoParameters()
        {
            Block block = this.compiler.CompileBlock(" :a :b | a+b");

            Assert.IsNotNull(block);
            Assert.AreEqual(0, block.NoLocals);
            Assert.AreEqual(0, block.NoGlobalNames);
            Assert.AreEqual(1, block.NoConstants);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(7, block.ByteCodes.Length);
            Assert.AreEqual(2, block.Arity);
        }
SimpleCompilerTests