public void TestTeacherCreation() { Person teacher = FactoryPerson.Create("Loh", false, true); Assert.AreSame(typeof(Teacher), teacher.GetType()); }
public void TestTeacherBossCreation() { Person teacherboss = FactoryPerson.Create("Boss", true, true); Assert.AreSame(typeof(Teacher), teacherboss.GetType()); }
public void TestStudentCreation() { Person student = FactoryPerson.Create("john", false, false); Assert.AreSame(typeof(Student), student.GetType()); }