Exemplo n.º 1
0
        public void WhenRollingD12_ThenResultReflectsCorrectTypeAndCorrectResult()
        {
            var expectedResult   = 12;
            var expectedDiceType = DiceType.d12;

            _rng.Setup(i => i.Next(It.IsAny <int>(), It.IsAny <int>())).Returns(expectedResult);

            var result = _diceRoller.D12();

            Assert.AreEqual(expectedDiceType, result.DiceType);
            Assert.AreEqual(expectedResult, result.Result);
        }