Пример #1
0
        public void ConMod2Level2HitDiceof4ReturnsBetween9And12()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int actual = hitPoints.GetTotalHitpointsD4(2, 2);

            //Assert
            Assert.IsTrue(actual >= 9 && actual <= 12);
        }
Пример #2
0
        public void ConModNeg4Level3HitDiceof4ReturnsBetween()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int expected = 3;
            int actual   = hitPoints.GetTotalHitpointsD4(-3, 3);

            //Assert
            Assert.AreEqual(expected, actual);
        }