Next() public method

public Next ( ) : void
return void
Example #1
0
        public void Next()
        {
            ArrayList p = new ArrayList();
            p.Add(new NopInstruction());
            HaltInstruction hi = new HaltInstruction();
            p.Add(hi);

            AMProgram program = new AMProgram();

            program.Initialize(p);

            program.Next();

            Assert.AreSame(program.P.Instruction, hi);
        }