public void TestRemoveStudentByUniqueNumberThatDoesNotExist() { Course it = new Course("IT"); Student Ivan = new Student("ivan", 34517); it.AddStudent(Ivan); it.RemoveStudentByUniqueNumber(999999); }
public void TestRemoveStudentByUniqueNumber() { Course it = new Course("IT"); Student Ivan = new Student("ivan", 34597); it.AddStudent(Ivan); it.RemoveStudentByUniqueNumber(34597); }
public void TestAddStudentToCourse() { Course it = new Course("IT"); Student Ivan = new Student("ivan", 34587); it.AddStudent(Ivan); Assert.AreEqual(it.students.Count, 1); }
public static void Main() { var st = new Student("dada", 33424); var st1 = new Student("d22ada", 31424); var languageSchool = new School(); languageSchool.AddStudent(st); languageSchool.AddStudent(st1); var math = new Course(); math.AddStudent(st); math.AddStudent(st1); math.RemoveStudent(new Student("dddd", 23232)); languageSchool.AddCourse(math); languageSchool.RemoveCourse(math); languageSchool.AddCourse(math); }
public void TestAddStudentToFullCourse() { Course it = new Course("IT"); for (int i = 50000; i < 50032; i++) { Student Ivan = new Student("Ivan", i); it.AddStudent(Ivan); } }
public void TestCourseAddRemoveStudent() { Course course = new Course(); Student student = new Student("Pesho", 50000); for (int i = 0; i < 30; i++) { course.AddStudent(student); } course.RemoveStudent(student); }