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

CompileIntegerWithRadix() private method

private CompileIntegerWithRadix ( ) : void
return void
        public void CompileIntegerWithRadix()
        {
            Parser compiler = new Parser("16rFF");
            Block block = compiler.CompileBlock();
            Assert.IsNotNull(block);
            Assert.AreEqual(0, block.NoLocals);
            Assert.AreEqual(1, block.NoConstants);
            Assert.AreEqual(0, block.NoGlobalNames);
            BlockDecompiler decompiler = new BlockDecompiler(block);
            var result = decompiler.Decompile();
            Assert.IsNotNull(result);
            Assert.AreEqual(1, result.Count);
            Assert.AreEqual("GetConstant 255", result[0]);
        }
ParserTests