예제 #1
0
파일: Test.cs 프로젝트: ic16b089/oom
 public void CannotCallGetDecimalWithoutStringArgument()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(1, 1, 2, "Dummy", 23).get_decimal("");
     });
 }
예제 #2
0
파일: Test.cs 프로젝트: ic16b089/oom
 public void CannotCreateNewDiveWithNegativeDiveNumber()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-4, 1, 2, "Dummy", 23);
     });
 }
예제 #3
0
파일: Test.cs 프로젝트: 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);
     });
 }
예제 #4
0
파일: Test.cs 프로젝트: ic16b089/oom
 public void CannotUpdateDiversLogbookWithoutDiveLocation()
 {
     Assert.Catch(() =>
     {
         var x = new Divers_Logbook(-1, 1, 2, "Dummy", 23);
         x.Update_Divers_Logbook(2, "", 25);
     });
 }