public void MovingAirPlanemultipleTimes() { Airplane airplane = new Airplane(200, "KLM", 700, 200); airplane.Ascend(2000); var result = airplane.Move(5); Assert.AreEqual(1000, airplane.Position); Assert.AreEqual("Moving along 5 times at an altitude of 2000 meters.", result); }
public void CorrectAirplaneDetailsWritten() { Airplane airplane = new Airplane(200, "KLM", 700, 200) { NumPassengers = 200 }; airplane.Ascend(2000); var result = airplane.Move(); Assert.AreEqual("Thank you for flying KLM: SafariPark.Airplane Capacity: 200 Passengers: 200 Speed: 200 Position: 200 Altitude: 2000", airplane.ToString()); }