RollHasOneOrFive() публичный Метод

public RollHasOneOrFive ( List roll ) : bool
roll List
Результат bool
Пример #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));
		}
Пример #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));
		}