AjTalk.Tests.Compiler.SimpleCompilerTests.CompileSimpleSendToSelf C# (CSharp) Method

CompileSimpleSendToSelf() private method

private CompileSimpleSendToSelf ( ) : void
return void
        public void CompileSimpleSendToSelf()
        {
            Block block = this.compiler.CompileBlock("self invokeWith: 10");
            Assert.IsNotNull(block);
            Assert.AreEqual(2, block.NoConstants);
            Assert.AreEqual(0, block.NoLocals);
            Assert.IsNotNull(block.ByteCodes);
            Assert.AreEqual(6, block.ByteCodes.Length);
            Assert.AreEqual(ByteCode.GetSelf, (ByteCode)block.ByteCodes[0]);
            Assert.AreEqual(0, block.Arity);
        }
SimpleCompilerTests