public void TestSchoolAddSameCourseShouldThrow() { var course = new Course("C#"); var school = new School("TA"); school.AddCourse(course); school.AddCourse(course); }
public void TestSchoolAddCorrectCourseShouldNotThrow() { var course = new Course("C#"); var school = new School("TA"); school.AddCourse(course); Assert.AreEqual(course, school.Courses[0]); }
public void TestSchoolRemoveExistantCourseShouldNotThrow() { var course = new Course("C#"); var school = new School("TA"); school.AddCourse(course); school.RemoveCourse(course); Assert.IsFalse(school.Courses.Contains(course)); }
public void TestSchoolRemoveNullCourseShouldThrow() { var school = new School("TA"); Course course = null; school.RemoveCourse(course); }
public void TestSchoolRemoveNotExistantCourseShouldThrow() { var course = new Course("C#"); var school = new School("TA"); school.RemoveCourse(course); }
public void TestSchoolHasExpectedName() { var school = new School("TA"); Assert.AreEqual("TA", school.Name); }
public void TestSchoolAddNullCourseShouldThrow() { var school = new School("TA"); Course course = null; school.AddCourse(course); }
public void TestNullSchoolNameShouldThrow() { var school = new School(null); }
public void TestEmptySchoolNameShouldThrow() { var school = new School(string.Empty); }
public void TestCreateValidSchoolShouldNotThrow() { var school = new School("TA"); }