Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }