public void Test_CourseJoinStudentTwiceShouldThrow()
 {
     var st = new Student(VALID_NAME, VALID_NUMBER);
     var course = new Course();
     course.Join(st);
     course.Join(st);
 }
        public void Test_AddTooManyStudentsShouldThrow()
        {
            var course = new Course();

            for (int i = 0; i < 50; i++)
            {
                var st = new Student(VALID_NAME, VALID_NUMBER + 1);
                course.Join(st);
            }
        }
 public void Test_CourseWithValidStudentShouldNotThrow()
 {
     var st = new Student(VALID_NAME, VALID_NUMBER);
     var course = new Course();
     try
     {
         course.Join(st);
         course.Leave(st);
     }
     catch (Exception ex)
     {
         Assert.Fail("Expected no exception, but got: " + ex.Message);
     }
 }