AjTalk.Tests.Compiler.VmCompilerTests.CompileBlockWithLocalVariable C# (CSharp) Method

CompileBlockWithLocalVariable() private method

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