Axiom.Runtime.AMProgram.Next C# (CSharp) Method

Next() public method

public Next ( ) : void
return void
        public void Next()
        {
            _p = _p.Next;
        }

Usage Example

Ejemplo n.º 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);
        }