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

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

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