예제 #1
0
        public void TestAddStudentToCourse()
        {
            var course1    = new Course("StartIT");
            var course2    = new Course("GetIT");
            var courseList = new CourseList();
            var student    = new Student("Tom Erik", "*****@*****.**");

            courseList.AddCourse(course1);
            courseList.AddCourse(course2);

            var test = courseList.AddStudentToCourse(student, course2);


            Assert.AreEqual(true, test);
        }