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

CompileSimpleCommandWithParenthesisAndBang() private method

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