public void Should_play_game1_until_deck_empty() { 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.playGame1(); Assert.Equal(10, _crabCombat.Player2.Count); Assert.Empty(_crabCombat.Player1); }
public void Should_calculate_winners_score() { 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.playGame1(); var score = _crabCombat.calculateScore(_crabCombat.GameWinner); Assert.Equal(306, score); }