public void DroneAboutTests() { // Drone Instance to be Tested Drone d = new Drone(); Assert.AreEqual(d.About(), $"This {d.ToString()} has a max altitude of 41000 ft. \nIt's current altitude is 0 ft. \nThis{d.Engine.ToString()}'s engine is not started."); }
public void DroneAbout() { Drone d = drone; string aboutText; aboutText = $"This model airplane has a max altitude of {500} feet while it's current altitude is at {0}"; Assert.AreEqual(aboutText, d.About()); }
public void DroneAbout() { //Arrange Drone dr = this.Drone; //Act // Nothing to act on here. //Assert Assert.AreEqual(dr.About(), $"This {dr.ToString()} has a max altitude of 500 ft.\nIts current altitude is 0 ft.\n{dr.Engine.ToString()} is not started."); }