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