Example #1
0
        public void Should_calculate_winners_score_for_game_2()
        {
            var player1 = new List <int> {
                9, 2, 6, 3, 1
            };
            var player2 = new List <int> {
                5, 8, 4, 7, 10
            };
            var _crabCombat = new CrabCombat(player1, player2);

            _crabCombat.playGame2();
            var score = _crabCombat.calculateScore(_crabCombat.GameWinner);

            Assert.Equal(291, score);
        }