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

CompileSimpleCommandWithParenthesisAndBangKeyword() private method

private CompileSimpleCommandWithParenthesisAndBangKeyword ( ) : void
return void
        public void CompileSimpleCommandWithParenthesisAndBangKeyword()
        {
            Parser compiler = new Parser("a := b with: (anObject !nativeMethod: 1)");
            Block block = compiler.CompileBlock();
            Assert.IsNotNull(block);
            Assert.AreEqual(3, block.NoGlobalNames);
            Assert.AreEqual(3, block.NoConstants);
            Assert.AreEqual(0, block.NoLocals);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(14, block.ByteCodes.Length);
            Assert.AreEqual(0, block.Arity);
        }
ParserTests