public void Seabird_TakeOff401Meters_ReturnsException() { MyAssert.AssertThrows <TooHighException>(() => seabird.TakeOff(401), "The seabird cannot fly over 400 meters."); }
public void Aircraft_TakeOff10001Meters_ReturnsException() { MyAssert.AssertThrows <TooHighException>(() => aircraft.TakeOff(10001), "The aircraft cannot fly over 10000 meters."); }
public void Seabird_TakeOff50Meters_ReturnsException() { MyAssert.AssertThrows <TooLowException>(() => seabird.TakeOff(50), "The seabird cannot fly under 51 meters."); }
public void Aircraft_TakeOff50Meters_ReturnsException() { MyAssert.AssertThrows <TooLowException>(() => aircraft.TakeOff(50), "The aircraft cannot fly under 51 meters."); }