Пример #1
0
        public void GivenLessThanThreeFours_WhenOnlyFoursAreRolled_ThenReturnZeroPoints(List<int> diceRolled)
        {
            var diceScorer = new DiceScorer();

            var actualPoints = diceScorer.ScoreSixes(diceRolled);
            Assert.AreEqual(0, actualPoints);
        }
Пример #2
0
        public void GivenMoreThanFourFours_WhenOnlyFoursAreRolled_ThenReturnFourHundredPoints(List<int> diceRolled)
        {
            var diceScorer = new DiceScorer();

            var actualPoints = diceScorer.ScoreSixes(diceRolled);
            Assert.AreEqual(600, actualPoints);
        }
Пример #3
0
        public void GivenExactlyThreeFours_WhenOnlyFoursAreRolled_ThenReturnFourHundredPoints()
        {
            var diceRolled = new List<int> { 6, 6, 6 };

            var diceScorer = new DiceScorer();

            var actualPoints = diceScorer.ScoreSixes(diceRolled);
            Assert.AreEqual(600, actualPoints);
        }