public void EngineInSeabirdToAircraft() { ISeacraft seabirdToAircraft = new SeabirdToAircraft(); ((IAircraft)seabirdToAircraft).TakeOff(); Assert.AreEqual(100, ((IAircraft)seabirdToAircraft).Height); Assert.AreEqual(50, seabirdToAircraft.Speed); Assert.IsTrue(((IAircraft)seabirdToAircraft).Airborne); }
public void IncreaseSeabirdToAircraftSpeed() { ISeacraft seabirdToAircraft = new SeabirdToAircraft(); seabirdToAircraft.IncreaseRevs(); seabirdToAircraft.IncreaseRevs(); Assert.AreEqual(0, ((IAircraft)seabirdToAircraft).Height); Assert.AreEqual(20, seabirdToAircraft.Speed); }