Exemplo n.º 1
0
        public void AddToCount_AddValid(int value, int count, int countToAdd, int expected)
        {
            var diceCollection = new DiceCollection(value, count);

            diceCollection.AddToCount(countToAdd);

            Assert.AreEqual(expected, diceCollection.Count);
        }
Exemplo n.º 2
0
        public void AddToCount_AddInvalid_ThrowsException(int value, int count, int countToAdd, int expected)
        {
            var diceCollection = new DiceCollection(value, count);

            diceCollection.AddToCount(countToAdd);
        }