예제 #1
0
        public void SchoolRemoveNotExistingStudentFromCourseTest()
        {
            School cSharpSchool = new School("C# School");
            Course cSharpCourse = new Course("C# Course");

            cSharpSchool.RemoveCourse(cSharpCourse);

            Assert.AreEqual(0, cSharpSchool.CountOfCourses());
        }
예제 #2
0
        public void SchoolAddStudentInCourseTest()
        {
            School cSharpSchool = new School("C# School");
            Course cSharpCourse = new Course("C# Course");

            cSharpSchool.AddCourse(cSharpCourse);

            Assert.AreEqual(1, cSharpSchool.CountOfCourses());
        }