Ejemplo n.º 1
0
 public void SchoolShouldThrowExceptionWhenAddingExistingStudent()
 {
     var school = new School("Telerik Academy");
     var student = new Student("Daniel Popov", 10000);
     school.AddStudent(student);
     school.AddStudent(student);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
0
 public void SchoolShouldAddStudentCorrectly()
 {
     var school = new School("Telerik Academy");
     var student = new Student("Daniel Popov", 10000);
     school.AddStudent(student);
 }
Ejemplo n.º 4
0
 public void SchoolShoudThrowWhenNullStudentAdded()
 {
     var school = new School("Telerik Academy");
     Student student = null;
     school.AddStudent(student);
 }