Example #1
0
File: Test.cs Project: ic16b089/oom
 public void CannotCallGetDecimalWithoutStringArgument()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(1, 1, 2, "Dummy", 23).get_decimal("");
     });
 }
Example #2
0
File: Test.cs Project: ic16b089/oom
 public void CannotCreateNewDiveWithNegativeDiveNumber()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-4, 1, 2, "Dummy", 23);
     });
 }
Example #3
0
File: Test.cs Project: ic16b089/oom
 public void CannotUpdateDiversLogbookWithNegativeDepth()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-1, 2, 2, "Dummy", 23);
         x.Update_Divers_Logbook(2, "Island_Update", -25);
     });
 }
Example #4
0
File: Test.cs Project: ic16b089/oom
 public void CannotUpdateDiversLogbookWithoutDiveLocation()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-1, 1, 2, "Dummy", 23);
         x.Update_Divers_Logbook(2, "", 25);
     });
 }