public void MoveUp() { WashingDayDefinition wd = new WashingDayDefinition(); AlarmController ac = new AlarmController(null, null, null); WashingDayEditorController wdc = new WashingDayEditorController(wd, allRoutines, ac); var unused = wdc.GetUnusedRoutineDefinitions(); wdc.AddRoutine(unused[0]); wdc.AddRoutine(unused[1]); wdc.AddRoutine(unused[2]); wdc.MoveUp(unused[1]); Assert.AreEqual(wdc.GetRoutineDefinitions()[0], unused[1]); }