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

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

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