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

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

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

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