public void ThrowHasASextet(){ // arrange var scoreCalculator = new ScoreCalculator (); // act var rollValues = new List<int> { 2, 2, 2, 2, 2, 2 }; // assert Assert.IsTrue (scoreCalculator.RollHasSextet(rollValues)); }
public void ThrowDoesntHaveOneOrFive(){ // arrange var scoreCalculator = new ScoreCalculator (); // act var rollValues = new List<int> { 3, 2, 2, 4, 3, 6 }; // assert Assert.IsFalse (scoreCalculator.RollHasOneOrFive(rollValues)); }
public void ThrowHasATriple(){ // arrange var scoreCalculator = new ScoreCalculator (); // act var rollValues = new List<int> { 2, 2, 2, 4, 3, 6 }; // assert Assert.IsTrue (scoreCalculator.RollHasTriple(rollValues)); }
public void CanThrowSixDice () { // arrange var scoreCalculator = new ScoreCalculator (); // act List<int> rollValues = scoreCalculator.ThrowDice (); // assert Assert.AreEqual (6, rollValues.Count); }