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); } }
public void Test_LeaveNotExistingStudentShouldThrow() { var st = new Student(VALID_NAME, VALID_NUMBER); var course = new Course(); course.Leave(st); }