public override bool Stop() { return (_p == null || _p.Instruction.Name().Equals("halt")); }
public void Stop() { ArrayList p = new ArrayList(); p.Add(new HaltInstruction()); AMProgram program = new AMProgram(); program.Initialize(p); Assert.IsTrue(program.Stop()); }