AjTalk.Tests.Compiler.ParserTests.CompileGetLocalInBlock C# (CSharp) Method

CompileGetLocalInBlock() private method

private CompileGetLocalInBlock ( ) : void
return void
        public void CompileGetLocalInBlock()
        {
            Parser compiler = new Parser("| env | [env at: #MyGlobal] value");
            Block block = compiler.CompileBlock();
            Assert.IsNotNull(block);
            Assert.IsTrue(block.NoConstants > 0);
            var result = block.GetConstant(0);
            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(Block));
            var decompiler = new BlockDecompiler((Block)result);
            var steps = decompiler.Decompile();
            Assert.IsTrue(steps.Contains("GetLocal env"));
        }
ParserTests