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

CompileSimpleCommand() private method

private CompileSimpleCommand ( ) : void
return void
        public void CompileSimpleCommand()
        {
            Parser compiler = new Parser("nil invokeWith: 10");
            Block block = compiler.CompileBlock();
            Assert.IsNotNull(block);
            Assert.AreEqual(2, block.NoConstants);
            Assert.AreEqual(0, block.NoLocals);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(6, block.ByteCodes.Length);
            Assert.AreEqual(0, block.Arity);
        }
ParserTests