public void Registering_IncorrectACEfficiencyRating_ShouldThrowException() { var userInterface = new ConsoleUserInterface(); var engine = new AirConditionerTestingSystemEngine(userInterface); var view = new AirConditionerView(engine); var registeredAc = view.RegisterStationaryAirConditioner("Toshiba", "EX1000", "F", 1000); var secondAc = view.RegisterPlaneAirConditioner("Hitachi", "", 25, 750); var thirdAc = view.RegisterCarAirConditioner("Toshiba", "C60", 9); }
public void Registering_IncorrectACPowerUsage_ShouldThrowException() { var userInterface = new ConsoleUserInterface(); var engine = new AirConditionerTestingSystemEngine(userInterface); var view = new AirConditionerView(engine); var registeredAc = view.RegisterStationaryAirConditioner("Toshiba", "EX1000", "B", 1000); var secondAc = view.RegisterPlaneAirConditioner("Hitachi", "", 25, -200); var thirdAc = view.RegisterCarAirConditioner("Toshiba", "C60", 9); }
public void Status_WithNoTested_Should_ReturnInCorrectly() { var userInterface = new ConsoleUserInterface(); var engine = new AirConditionerTestingSystemEngine(userInterface); var view = new AirConditionerView(engine); var firstAc = view.RegisterStationaryAirConditioner("Toshiba", "EX1000", "B", 1000); var secondAc = view.RegisterPlaneAirConditioner("Hitachi", "P320", 25, 750); var thirdAc = view.RegisterCarAirConditioner("Toshiba", "C60", 9); var result = view.Status(); Assert.AreEqual("Jobs complete: 0,00%", result); }