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

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

private CompileSubClassDefinitionWithInstances ( ) : void
Результат void
        public void CompileSubClassDefinitionWithInstances()
        {
            ModelParser parser = new ModelParser("nil subclass: #Object instanceVariables: 'a b c'");
            IExpression expr = parser.ParseExpression();
            this.compiler.CompileExpression(expr);
            Assert.IsNotNull(this.block);
            Assert.AreEqual(3, this.block.NoConstants);
            Assert.AreEqual(0, this.block.NoLocals);
            Assert.IsNotNull(this.block.ByteCodes);
            Assert.AreEqual(8, this.block.ByteCodes.Length);
            Assert.AreEqual(0, this.block.Arity);
        }