public void ConMod2HitDiceof4ReturnsBetween3And6() { //Arrange HitPoints hitPoints = new HitPoints(); //Act int actual = hitPoints.GetLevel2AndUpHitPontsD4(2); //Assert Assert.IsTrue(actual >= 3 && actual <= 6); }
public void ConModNeg5HitDiceof4Returns1() { //Arrange HitPoints hitPoints = new HitPoints(); //Act int expected = 1; int actual = hitPoints.GetLevel2AndUpHitPontsD4(-5); //Assert Assert.AreEqual(expected, actual); }