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

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

private CompileBlockWithLocalVariable ( ) : void
Результат void
        public void CompileBlockWithLocalVariable()
        {
            var result = this.compiler.CompileBlock("|a| a := 1");
            Assert.IsNotNull(result);
            Assert.IsNotNull(result.ByteCodes);
            BlockDecompiler decompiler = new BlockDecompiler(result);
            var ops = decompiler.Decompile();
            Assert.IsNotNull(ops);
            Assert.AreEqual("SetLocal a", ops[1]);
        }
SimpleCompilerTests