public void TestingSchoolAddingStudents() { string name = "TeleriGGG"; string courseName = "Tech"; int id = 10000; var school = new School(name); var course = new Course(courseName); school.AddCourse(course); Assert.AreEqual( course, school.Courses[0], string.Format("The object {0} does not equal the expected object {1}", school.Courses[0], course)); }
public void TestingSchoolRemovingStudents() { string name = "TeleriGGG"; string courseName = "Tech"; int length = 0; var school = new School(name); var course = new Course(courseName); school.AddCourse(course); school.RemoveCourse(course); Assert.AreEqual( length, school.Courses.Count, string.Format("The length {0} does not equal the expected length {1}", school.Courses.Count, length)); }