Esempio n. 1
0
        public void TestTeacherCreation()
        {
            Person teacher = FactoryPerson.Create("Loh", false, true);

            Assert.AreSame(typeof(Teacher), teacher.GetType());
        }
Esempio n. 2
0
        public void TestTeacherBossCreation()
        {
            Person teacherboss = FactoryPerson.Create("Boss", true, true);

            Assert.AreSame(typeof(Teacher), teacherboss.GetType());
        }
Esempio n. 3
0
        public void TestStudentCreation()
        {
            Person student = FactoryPerson.Create("john", false, false);

            Assert.AreSame(typeof(Student), student.GetType());
        }