public void AircraftFactoryCreatesRocketTest() { var factory = new AircraftFactory(); var rocket = factory.CreateVehicle <Rocket>(); Assert.IsInstanceOfType(rocket, typeof(Rocket)); }
public void AircraftFactoryCreatesPlaneTest() { var factory = new AircraftFactory(); var plane = factory.CreateVehicle <Plane>(); Assert.IsInstanceOfType(plane, typeof(Plane)); }
public void AircraftFactoryCreatesDroneTest() { var factory = new AircraftFactory(); var drone = factory.CreateVehicle <Drone>(); Assert.IsInstanceOfType(drone, typeof(Drone)); }