public void GivenMoreThanFourFours_WhenOnlyFoursAreRolled_ThenReturnFourHundredPoints(List<int> diceRolled) { var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(diceRolled); Assert.AreEqual(600, actualPoints); }
public void GivenLessThanThreeFours_WhenOnlyFoursAreRolled_ThenReturnZeroPoints(List<int> diceRolled) { var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(diceRolled); Assert.AreEqual(0, actualPoints); }
public void GivenMoreThanThreeThrees_WhenOnlyThreesAreRolled_ThenReturnThreeHundredPoints(Object diceRolled) { var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(new List<int> { 3, 3, 3, 3 }); Assert.AreEqual(300, actualPoints); }
public void GivenSixTwos_WhenOnlyTwosAreRolled_ThenReturnSixteenHundredPoints() { var diceRolled = new List<int> { 2, 2, 2, 2, 2, 2 }; var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(diceRolled); Assert.AreEqual(1600, actualPoints); }
public void GivenThreePairs_WhenDiceAreRolled_ThenReturnEightHundredPoints(List<int> diceRolled) { var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var pointsScored = greed.GetTotalPoints(diceRolled); Assert.AreEqual(800, pointsScored); }
public void GivenOnlyTwoFives_WhenDiceAreRolled_ThenReturnOneHundredPoints() { var diceToScore = new List<int> { 5, 5 }; var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(diceToScore); Assert.AreEqual(100, actualPoints); }
public void GivenOnlyOneFive_WhenDiceAreRolled_ThenReturnFiftyPoints() { var diceToScore = new List<int> { 5 }; var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(diceToScore); Assert.AreEqual(50, actualPoints); }
public void GivenStraight_WhenDiceAreRolled_ThenReturnTwelveHundredPoints() { var diceToScore = new List<int> { 1, 2, 3, 4, 5, 6 }; var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualValue = greed.GetTotalPoints(diceToScore); Assert.AreEqual(1200, actualValue); }
public void GivenExactlyThreeFours_WhenOnlyFoursAreRolled_ThenReturnFourHundredPoints() { var diceRolled = new List<int> { 6, 6, 6 }; var diceScorer = new DiceScorer(); var greed = new Greed(diceScorer); var actualPoints = greed.GetTotalPoints(diceRolled); Assert.AreEqual(600, actualPoints); }