예제 #1
0
 public void TestCourseRemoveStudent()
 {
     var course = new Course();
     var student = new Student("Name", 12345);
     course.AddStudent(student);
     course.RemoveStudent(student);
     Assert.IsFalse(course.Students.Contains(student));
 }
예제 #2
0
 public void TestCourseRemoveStudentNull()
 {
     var course = new Course();
     course.RemoveStudent(null);
 }
예제 #3
0
 public void TestCourseRemoveMissingStudent()
 {
     var course = new Course();
     var student = new Student("Name", 12345);
     course.RemoveStudent(student);
 }