public void SimpleFactoryTest() { Course course = new Course(); course.Type = SimpleFactory.CreateClassrom(CourseType.Online); Assert.IsInstanceOfType(course.Type, typeof(OnlineCourse)); }