示例#1
0
        public void MoveDown()
        {
            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.MoveDown(unused[0]);
            Assert.AreEqual(wdc.GetRoutineDefinitions()[1], unused[0]);
        }