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