示例#1
0
 public void Level20PaladinReturns12Will()
 {
     SavingThrows will = new SavingThrows();
     int expected = 6;
     int actual = will.GetWill(20, "Paladin");
     Assert.AreEqual(expected, actual);
 }
示例#2
0
 public void Level1BardReturns2Reflex()
 {
     SavingThrows reflex = new SavingThrows();
     int expected = 2;
     int actual = reflex.GetReflex(1, "Bard");
     Assert.AreEqual(expected, actual);
 }
示例#3
0
 public void Level20PaladinReturns12()
 {
     SavingThrows Fort = new SavingThrows();
     int expected = 12;
     int actual = Fort.GetFort(20, "Paladin");
     Assert.AreEqual(expected, actual);
 }
示例#4
0
 public void Level1BardReturns0Will()
 {
     SavingThrows will = new SavingThrows();
     int expected = 2;
     int actual = will.GetWill(1, "Bard");
     Assert.AreEqual(expected, actual);
 }
示例#5
0
 public void Level1BardReturns0()
 {
     SavingThrows Fort = new SavingThrows();
     int expected = 0;
     int actual = Fort.GetFort(1, "Bard");
     Assert.AreEqual(expected, actual);
 }
示例#6
0
 public void BadDataReturnsErrorWill()
 {
     SavingThrows will = new SavingThrows();
     int expected = -999;
     int actual = will.GetWill(21, "Paladin");
     Assert.AreEqual(expected, actual);
 }
示例#7
0
 public void BadDataReturnsErrorReflex()
 {
     SavingThrows reflex = new SavingThrows();
     int expected = -999;
     int actual = reflex.GetReflex(21, "Paladin");
     Assert.AreEqual(expected, actual);
 }
示例#8
0
 public void BadDataReturnsError()
 {
     SavingThrows Fort = new SavingThrows();
     int expected = -999;
     int actual = Fort.GetFort(21, "Paladin");
     Assert.AreEqual(expected, actual);
 }
示例#9
0
 public void Level20PaladinReturns6Reflex()
 {
     SavingThrows reflex = new SavingThrows();
     int expected = 6;
     int actual = reflex.GetReflex(20, "Paladin");
     Assert.AreEqual(expected, actual);
 }