Beispiel #1
0
 public void CannotCallGetDecimalWithoutStringArgument()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(1, 1, 2, "Dummy", 23).get_decimal("");
     });
 }
Beispiel #2
0
 public void CannotCreateNewDiveWithNegativeDiveNumber()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-4, 1, 2, "Dummy", 23);
     });
 }
Beispiel #3
0
 public void CannotUpdateDiversLogbookWithNegativeDepth()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-1, 2, 2, "Dummy", 23);
         x.Update_Divers_Logbook(2, "Island_Update", -25);
     });
 }
Beispiel #4
0
 public void CannotUpdateDiversLogbookWithoutDiveLocation()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-1, 1, 2, "Dummy", 23);
         x.Update_Divers_Logbook(2, "", 25);
     });
 }