public void GetInvalidStudentID() { School.Lib.School school = new School.Lib.School(); school.GetStudentByUID(10000); }
public void CreateSchool() { School.Lib.School school = new School.Lib.School(); Assert.IsNotNull(school); }
public void GetInvalidCourseName() { School.Lib.School school = new School.Lib.School(); school.GetCourseByName("lal"); }
public void AddDuplicatedIDStudent() { School.Lib.School school = new School.Lib.School(); school.AddStudent("lala", 10000); school.AddStudent("2222", 10000); }
public void AddStudent() { School.Lib.School school = new School.Lib.School(); school.AddStudent("lala", 10000); Assert.AreEqual("lala", school.GetStudentByUID(10000).Name); }
public void AddDuplicatedCourse() { School.Lib.School school = new School.Lib.School(); school.AddCourse(new Course("lol")); school.AddCourse(new Course("lol")); }
public void AddCourseWithStudents() { School.Lib.School school = new School.Lib.School(); school.AddCourse("lol", new Student("lele", 10000), new Student("male", 10001)); Assert.AreEqual("lol", school.GetCourseByName("lol").CourseName); }
public void AddCourse() { School.Lib.School school = new School.Lib.School(); school.AddCourse(new Course("lol")); Assert.AreEqual("lol", school.GetCourseByName("lol").CourseName); }
public void AddBadIDStudentLow() { School.Lib.School school = new School.Lib.School(); school.AddStudent("lala", 9999); }
public void AddBadIDStudentHigh() { School.Lib.School school = new School.Lib.School(); school.AddStudent("lala", 100000); }