Пример #1
0
        public void testRemoveStudent()
        {
            Student str = new Student();

            str.StudentID = "11";
            str.FirstName = "romyr";
            contoller.addOrUpdateStudent(str);
            //str.StudentID = "123";
            //str.FirstName = "sample";
            //contoller.addOrUpdateStudent(str);
            contoller.removeStudent("11");
            int asd = contoller.getAllStudents().Count;

            Assert.AreEqual(contoller.getStudent("11"), null);
            Assert.AreEqual(contoller.getAllStudents().Count, asd);
            //Remove a student
            //Test that the student is not present after running the remove function
        }