Пример #1
0
        public void Get_WrongIndex()
        {
            ScheduleManager sm = new ScheduleManager();

            string expected = "Предмет не найден";

            Assert.AreEqual(expected, sm.GetElement(5, true));
        }
Пример #2
0
        public void Edit_Element()
        {
            ScheduleManager sm = new ScheduleManager();

            string expected = "Васильева";

            sm.AddElement("Для теста", false);
            sm.EditElement(0, expected, false);

            Assert.AreEqual(expected, sm.GetElement(0, false));
        }
Пример #3
0
        public void AddAndRemove_Teacher()
        {
            ScheduleManager sm = new ScheduleManager();

            string FName          = "Иванов";
            string SName          = "Федоров";
            string TName_Expected = "Петров";

            sm.AddElement(FName, false);
            sm.AddElement(SName, false);
            sm.AddElement(TName_Expected, false);

            sm.DeleteElement(1, false);

            Assert.AreEqual(TName_Expected, sm.GetElement(1, false));
        }