public void PneumologistCreationWithoutReflectionTest() { SimpleFactory factory = SimpleFactory.GetFactory(); IDoctor x = factory.GetDoctor(typeof(Pneumologist)); Assert.AreSame(x.GetType(), typeof(Pneumologist)); }