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

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

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