AjTalk.Tests.Compiler.VmCompilerTests.ExecuteBasicInstSize C# (CSharp) Method

ExecuteBasicInstSize() private method

private ExecuteBasicInstSize ( ) : void
return void
        public void ExecuteBasicInstSize()
        {
            Machine machine = new Machine();

            object nil = machine.UndefinedObjectClass;

            Assert.IsNotNull(nil);
            Assert.IsInstanceOfType(nil, typeof(IClass));

            Block block = this.compiler.CompileBlock("^UndefinedObject new basicInstSize");

            Assert.IsNotNull(block);

            object result = block.Execute(machine, null);

            Assert.AreEqual(0, result);
        }