コード例 #1
0
 public void GetInvalidCourseName()
 {
     var school = new School();
     school.GetCourseByName(ValidCourseName);
 }
コード例 #2
0
 public void AddCourseWithStudents()
 {
     var school = new School();
     school.AddCourse(ValidCourseName, new Student(ValidName, 10000));
     Assert.AreEqual(ValidCourseName, school.GetCourseByName(ValidCourseName).CourseName);
 }
コード例 #3
0
 public void AddCourse()
 {
     var school = new School();
     school.AddCourse(new Course(ValidCourseName));
     Assert.AreEqual(ValidCourseName, school.GetCourseByName(ValidCourseName).CourseName);
 }
コード例 #4
0
 public void GetInvalidCourseName()
 {
     School school = new School();
     school.GetCourseByName("lal");
 }
コード例 #5
0
 public void AddCourseWithStudents()
 {
     School school = new School();
     school.AddCourse("lol",  new Student("lele", 10000), new Student("male", 10001));
     Assert.AreEqual("lol", school.GetCourseByName("lol").CourseName);
 }
コード例 #6
0
 public void AddCourse()
 {
     School school = new School();
     school.AddCourse(new Course("lol"));
     Assert.AreEqual("lol",school.GetCourseByName("lol").CourseName);
 }