Пример #1
0
        // "Fake" RNG for addition of stat modifier and proficiency bonus
        public void rollTestStatProficiencyAdditionCorrect()
        {
            DiceForTesting tester = new DiceForTesting("4D6", 13, 17);

            int rollResultExpected = 54;

            int rollResultActual = tester.rollFixedAdditionTest();

            Assert.AreEqual(rollResultExpected, rollResultActual, 0,
                            "DiceTest.rollTestStatProficiencyAdditionCorrect():" + "rollResult not computed " +
                            "correctly - expected " +
                            rollResultExpected + ", got " + rollResultActual + ".");
        }