public void RemoveStudentInCourse() { Course course = new Course("lala"); course.AddStudent(new Student("lol", 10000)); course.RemoveStudentByUID(10000); course.AddStudent(new Student("lol", 10000)); }
public void MoreThan30Students() { Course course = new Course("lala"); for (int i = 0; i < 35; i++) { course.AddStudent(new Student(i.ToString(), 10000 + i)); } }
public void AddCourse(Course course) { string courseName = course.CourseName; foreach (var item in courses) { if (item.CourseName == courseName) { throw new ArgumentException("Course names cannot duplicate."); } } courses.Add(course); }
public void IncorrectCourseName() { Course course = new Course(""); }
public void CreateCourse() { Course course = new Course("lolerskates"); Assert.AreEqual("lolerskates", course.CourseName); }
public void AddRepeatingStudentInCourse() { Course course = new Course("lala"); course.AddStudent(new Student("lol", 10000)); course.AddStudent(new Student("lol", 10000)); }