コード例 #1
0
 public void CannotUpdateDiversLogbookWithNegativeDepth()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(1, "Hawaii", 27, Dive_Type.Oxygen_Dive);
         x.Update_Dive(4, "Hawaii", -27, Dive_Type.Oxygen_Dive);
     });
 }
コード例 #2
0
 public void CannotUpdateDiversLogbookWithoutDiveLocation()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(1, "Hawaii", 27, Dive_Type.Oxygen_Dive);
         x.Update_Dive(4, "", 27, Dive_Type.Oxygen_Dive);
     });
 }