Esempio n. 1
0
 public void TestSchool_AddCourseArgument()
 {
     School testSchool = new School(schoolName);
     Course javascript = new Course("Javascript","Nakov");
     testSchool.AddCourse(javascript);
     testSchool.AddCourse(javascript);
 }
Esempio 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");
 }
Esempio n. 3
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);
 }
Esempio n. 4
0
 public void TestSchool_AddCourseNullStudent()
 {
     School testSchoolNull = new School(schoolName);
     testSchoolNull.AddCourse(null);
 }