Ejemplo n.º 1
0
 public void StudentGroupShouldRemoveStudent()
 {
     var myClass = new StudentGroup("TelerikAcad");
     var student = new Student("Pe6o Ubaveca", Student.MinValidId);
     myClass.AddStudent(student);
     Assert.AreEqual(1, myClass.Students.Count);
     myClass.RemoveStudent(student);
     Assert.AreEqual(0, myClass.Students.Count);
 }
Ejemplo n.º 2
0
 public void StudentGroupShouldThrowOnNullStudentRemove()
 {
     var myClass = new StudentGroup("TelerikAcad");
     myClass.RemoveStudent(null);
 }
Ejemplo n.º 3
0
 public void StudentGroupShouldThrowIfNoSuchStudentToRemove()
 {
     var myClass = new StudentGroup("TelerikAcad");
     var student = new Student("Pe6o Ubaveca", Student.MinValidId);
     myClass.RemoveStudent(student);
 }