RollHasOneOrFive() public method

public RollHasOneOrFive ( List roll ) : bool
roll List
return bool
Esempio n. 1
0
		public void ThrowHasFive(){
			// arrange
			var scoreCalculator = new ScoreCalculator ();

			// act
			var rollValues = new List<int>  { 5, 2, 2, 4, 3, 6 };

			// assert
			Assert.IsTrue (scoreCalculator.RollHasOneOrFive(rollValues));
		}
Esempio n. 2
0
		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));
		}