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

Stop() public method

public Stop ( ) : bool
return bool
        public override bool Stop()
        {
            return (_p == null || _p.Instruction.Name().Equals("halt"));
        }

Usage Example

Example #1
0
        public void Stop()
        {
            ArrayList p = new ArrayList();
            p.Add(new HaltInstruction());

            AMProgram program = new AMProgram();
            program.Initialize(p);

            Assert.IsTrue(program.Stop());
        }