Esempio n. 1
0
 public void SchoolShouldRemoveStudentCorrectly()
 {
     var school = new School("Telerik Academy");
     var student = new Student("Daniel Popov", 10000);
     school.AddStudent(student);
     school.RemoveStudent(student);
     Assert.AreEqual(0, school.Students.Count);
 }
Esempio n. 2
0
 public void SchoolShouldThrowExceptionWhenRemovingUnexistingStudent()
 {
     var school = new School("Telerik Academy");
     var student = new Student("Daniel Popov", 10000);
     school.RemoveStudent(student);
 }