public void Build_ShouldReturn_Car() { var service = new ConcreteClassFactory(); var actual = service.Build(4); Assert.Contains("Car", actual.Broadcast); Assert.IsType <Car>(actual); }
public void Build_ShouldReturn_Bicycle() { var service = new ConcreteClassFactory(); var actual = service.Build(2); Assert.Contains("Bicycle", actual.Broadcast); Assert.IsType <Bicycle>(actual); }