public void TestAddStudentId() { string name = "40 SOU"; Student student = new Student("Ivan Ivanov", 12233); School school = new School(name); school.AddStudent(student); Assert.AreEqual(student.StudentId, school.StudentsList[0].StudentId); }
public void TestRemoveStudent() { string name = "40 SOU"; Student student = new Student("Ivan Ivanov", 12233); School school = new School(name); school.AddStudent(student); school.RemoveStudent(student); Assert.IsTrue(school.StudentsList.Count == 0); }