コード例 #1
0
        public void ConMod2HitDiceof8ReturnsBetween3And10()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int actual = hitPoints.GetLevel2AndUpHitPontsD8(2);

            //Assert
            Assert.IsTrue(actual >= 3 && actual <= 10);
        }
コード例 #2
0
        public void ConModNeg9HitDiceof8Returns1()
        {
            //Arrange
            HitPoints hitPoints = new HitPoints();
            //Act
            int expected = 1;
            int actual   = hitPoints.GetLevel2AndUpHitPontsD8(-9);

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