Exemplo n.º 1
0
        public void AddAndRemove_Groups()
        {
            ScheduleManager sm = new ScheduleManager();

            sm.AddGroup(219);
            sm.AddGroup(217);
            sm.AddGroup(219);
            sm.AddGroup(118);
            sm.AddGroup(314);

            sm.DeleteGroup(2);

            int[] list_expected = new int[] { 219, 217, 314 };

            Assert.AreEqual(list_expected, sm.GetGroupNameList().ToArray());
        }
Exemplo n.º 2
0
        public void Edit_Day()
        {
            ScheduleManager sm = new ScheduleManager();

            sm.AddGroup(219);
            sm.AddElement("Федулкин", false);
            sm.AddElement("Сетевые технологии", true);
            sm.EditLesson(0, 1, 3, 114, 1, 1);

            Table     tb = new Table(0, 0);
            TableCell tc = new TableCell();

            tc.Edit("Сетевые технологии", "Федулкин", "114");

            Assert.AreEqual(tc, tb.Cells[1, 3]);
        }