コード例 #1
0
 public void Level1BardReturns0()
 {
     SavingThrows Fort = new SavingThrows();
     int expected = 0;
     int actual = Fort.GetFort(1, "Bard");
     Assert.AreEqual(expected, actual);
 }
コード例 #2
0
 public void Level20PaladinReturns12()
 {
     SavingThrows Fort = new SavingThrows();
     int expected = 12;
     int actual = Fort.GetFort(20, "Paladin");
     Assert.AreEqual(expected, actual);
 }
コード例 #3
0
 public void BadDataReturnsError()
 {
     SavingThrows Fort = new SavingThrows();
     int expected = -999;
     int actual = Fort.GetFort(21, "Paladin");
     Assert.AreEqual(expected, actual);
 }