Exemple #1
0
        public void GivenThreeTwos_ThenReturnTwoHundredPoints()
        {
            var diceRolled = new List<int> { 2, 2, 2 };

            var diceScorer = new DiceScorer();

            var actualPoints = diceScorer.ScoreTwos(diceRolled);
            Assert.AreEqual(200, actualPoints);
        }
Exemple #2
0
        public void GivenLessThanThreeTwos_ThenReturnZeroPoints(List<int> diceRolls)
        {
            var diceToScore = new List<int> { 2 };
            var diceScorer = new DiceScorer();

            var actualValue = diceScorer.ScoreTwos(diceToScore);

            Assert.AreEqual(0, actualValue);
        }