public void Factory4_AutoFactory_Should_TurnOn_OFF_Mini_EconomyCar() { Factory4.Factory.IAutoFactory autoFactory = Factory4.CreateFactory.LoadFactory(Properties.Settings.Default.Factory4_AutoFactory_Mini); Factory4.Autos.IAutomobile car; car = autoFactory.CreateEconomyCar(); car.TurnOn(); car.TurnOff(); Assert.IsInstanceOfType(car, typeof(Factory4.Autos.Mini.MiniCooper)); }
public void Factory4_AutoFactory_Should_TurnOn_OFF_BMW_LuxuryCar() { Factory4.Factory.IAutoFactory autoFactory = Factory4.CreateFactory.LoadFactory(Properties.Settings.Default.Factory4_AutoFactory_BMW); Factory4.Autos.IAutomobile car; car = autoFactory.CreateLuxuryCar(); car.TurnOn(); car.TurnOff(); Assert.IsInstanceOfType(car, typeof(Factory4.Autos.BMW.BMW740i)); }