AjTalk.Tests.Compiler.VmCompilerTests.CompileBlockWithLocalVariable C# (CSharp) Méthode

CompileBlockWithLocalVariable() private méthode

private CompileBlockWithLocalVariable ( ) : void
Résultat 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]);
        }