public AbstractMachineState SetupMachine() { AbstractMachineState state = new AbstractMachineState(new AMFactory()); ArrayList prog = new ArrayList(); prog.Add(new HaltInstruction()); state.Initialize(prog); return state; }