Exemplo n.º 1
0
 public void TestSchool_AddCourseArgument()
 {
     School testSchool = new School(schoolName);
     Course javascript = new Course("Javascript","Nakov");
     testSchool.AddCourse(javascript);
     testSchool.AddCourse(javascript);
 }
Exemplo n.º 2
0
 public void TestSchool_AddCourse()
 {
     School testSchool = new School(schoolName);
     Course javascript = new Course("Javascript", "Nakov");
     testSchool.AddCourse(javascript);
     Assert.IsTrue(testSchool.Courses.Contains(javascript), "Course is not in the school");
 }
Exemplo n.º 3
0
 public void TestSchool_RemoveCourseNullStudent()
 {
     School testSchoolNull = new School(schoolName);
     testSchoolNull.RemoveCourse(null);
 }
Exemplo n.º 4
0
 public void TestSchool_RemoveCourseArgument()
 {
     School testSchool = new School(schoolName);
     Course javascript = new Course("Javascript", "Nakov");
     Course oop = new Course("OOP", "Nakov");
     testSchool.AddCourse(javascript);
     testSchool.RemoveCourse(oop);
 }
Exemplo n.º 5
0
 public void TestSchoolConstructor_WhitespaceThrowException()
 {
     School whitespaceSchool = new School("   ");
 }
Exemplo n.º 6
0
 public void TestSchoolConstructor_NullThrowException()
 {
     School nullSchool = new School(null);
 }
Exemplo n.º 7
0
 public void TestSchoolConstructor_Name()
 {
     School testSchool = new School(schoolName);
     Assert.AreEqual(schoolName, testSchool.Name, "School name is not set in a correct way");
 }
Exemplo n.º 8
0
 public void TestSchoolConstructor_BlankThrowException()
 {
     School blankSchool = new School(string.Empty);
 }