Exemplo n.º 1
0
 public void TestSchoolAddSameCourseShouldThrow()
 {
     var course = new Course("C#");
     var school = new School("TA");
     school.AddCourse(course);
     school.AddCourse(course);
 }
Exemplo n.º 2
0
 public void TestSchoolAddCorrectCourseShouldNotThrow()
 {
     var course = new Course("C#");
     var school = new School("TA");
     school.AddCourse(course);
     Assert.AreEqual(course, school.Courses[0]);
 }
Exemplo n.º 3
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));
        }
Exemplo n.º 4
0
 public void TestSchoolRemoveNullCourseShouldThrow()
 {
     var school = new School("TA");
     Course course = null;
     school.RemoveCourse(course);
 }
Exemplo n.º 5
0
 public void TestSchoolRemoveNotExistantCourseShouldThrow()
 {
     var course = new Course("C#");
     var school = new School("TA");
     school.RemoveCourse(course);
 }
Exemplo n.º 6
0
 public void TestSchoolHasExpectedName()
 {
     var school = new School("TA");
     Assert.AreEqual("TA", school.Name);
 }
Exemplo n.º 7
0
 public void TestSchoolAddNullCourseShouldThrow()
 {
     var school = new School("TA");
     Course course = null;
     school.AddCourse(course);
 }
Exemplo n.º 8
0
 public void TestNullSchoolNameShouldThrow()
 {
     var school = new School(null);
 }
Exemplo n.º 9
0
 public void TestEmptySchoolNameShouldThrow()
 {
     var school = new School(string.Empty);
 }
Exemplo n.º 10
0
 public void TestCreateValidSchoolShouldNotThrow()
 {
     var school = new School("TA");
 }