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

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

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