AjTalk.Tests.Compilers.Vm.BytecodeCompilerTests.CompileSimpleCommandWithParenthesisAndBang C# (CSharp) Метод

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

private CompileSimpleCommandWithParenthesisAndBang ( ) : void
Результат void
        public void CompileSimpleCommandWithParenthesisAndBang()
        {
            ModelParser parser = new ModelParser("a := b with: (anObject !nativeMethod)");
            IExpression expr = parser.ParseExpression();
            this.compiler.CompileExpression(expr);
            Assert.IsNotNull(this.block);
            Assert.AreEqual(3, this.block.NoGlobalNames);
            Assert.AreEqual(2, this.block.NoConstants);
            Assert.AreEqual(0, this.block.NoLocals);
            Assert.IsNotNull(this.block.ByteCodes);
            Assert.AreEqual(12, this.block.ByteCodes.Length);
            Assert.AreEqual(0, this.block.Arity);
        }