public void CreateMiniCooperLuxuryCar(MiniCooperFactory sut) { var auto = sut.CreateLuxuryCar(); var actual = Assert.IsAssignableFrom <IAutomobile>(auto); const string expected = "Mini Cooper with leather upholstery"; Assert.Equal(expected, actual.TurnOn()); }
public void CreateMiniCooperEconomyCar(MiniCooperFactory sut) { var auto = sut.CreateEconomyCar(); var actual = Assert.IsAssignableFrom <IAutomobile>(auto); const string expected = "Mini Cooper"; Assert.Equal(expected, actual.TurnOn()); }
public void BeAssignableFromIAutoFactoryForMiniCooper(MiniCooperFactory sut) { Assert.IsAssignableFrom <IAutoFactory>(sut); }