コード例 #1
0
 public void Level1BardReturns0Will()
 {
     SavingThrows will = new SavingThrows();
     int expected = 2;
     int actual = will.GetWill(1, "Bard");
     Assert.AreEqual(expected, actual);
 }
コード例 #2
0
 public void Level20PaladinReturns12Will()
 {
     SavingThrows will = new SavingThrows();
     int expected = 6;
     int actual = will.GetWill(20, "Paladin");
     Assert.AreEqual(expected, actual);
 }
コード例 #3
0
 public void BadDataReturnsErrorWill()
 {
     SavingThrows will = new SavingThrows();
     int expected = -999;
     int actual = will.GetWill(21, "Paladin");
     Assert.AreEqual(expected, actual);
 }