コード例 #1
0
        public void TestCourseRemoveExistantStudentShouldNotThrow()
        {
            var course = new Course("C#");
            var student = new Student("Pesho", 10111);
            course.JoinCourse(student);
            course.LeaveCourse(student);

            Assert.IsFalse(course.Students.Contains(student));
        }
コード例 #2
0
 public void TestCourseRemoveNullStudentShouldThrow()
 {
     var course = new Course("C#");
     Student student = null;
     course.LeaveCourse(student);
 }
コード例 #3
0
 public void TestCourseRemoveNotExistantStudentShouldThrow()
 {
     var course = new Course("C#");
     var student = new Student("Pesho", 10111);
     course.LeaveCourse(student);
 }