Beispiel #1
0
        public void TestHasCourseMissingCourse()
        {
            School school = new School();
            school.AddCourse(new Course("Chemistry"));

            Assert.IsFalse(school.HasCourse(new Course("Biology")));
        }
Beispiel #2
0
        public void TestHasCourseNullObject()
        {
            School school = new School();
            school.AddCourse(new Course("Chemistry"));

            Assert.IsFalse(school.HasCourse(null));
        }
Beispiel #3
0
        public void TestHasCourseExistingCourse()
        {
            School school = new School();
            school.AddCourse(new Course("Chemistry"));

            Assert.IsTrue(school.HasCourse(new Course("Chemistry")));
        }