public void Dealer_PowerSettingToPlayer_ShouldWork() { List <ICharacter> players = new List <ICharacter>(); tableCards.Add(cardFactory.CreateCard(2, CardType.Diamonds)); tableCards.Add(cardFactory.CreateCard(6, CardType.Spades)); tableCards.Add(cardFactory.CreateCard(4, CardType.Spades)); tableCards.Add(cardFactory.CreateCard(5, CardType.Clubs)); tableCards.Add(cardFactory.CreateCard(5, CardType.Diamonds)); player1.Hand.Add(cardFactory.CreateCard(5, CardType.Hearts)); player1.Hand.Add(cardFactory.CreateCard(2, CardType.Hearts)); player2.Hand.Add(cardFactory.CreateCard(5, CardType.Spades)); player2.Hand.Add(cardFactory.CreateCard(9, CardType.Hearts)); human.Hand.Add(cardFactory.CreateCard(11, CardType.Spades)); human.Hand.Add(cardFactory.CreateCard(3, CardType.Hearts)); player3.Hand.Add(cardFactory.CreateCard(7, CardType.Clubs)); player3.Hand.Add(cardFactory.CreateCard(6, CardType.Clubs)); player4.Hand.Add(cardFactory.CreateCard(11, CardType.Hearts)); player4.Hand.Add(cardFactory.CreateCard(14, CardType.Hearts)); player5.Hand.Add(cardFactory.CreateCard(8, CardType.Hearts)); player5.Hand.Add(cardFactory.CreateCard(13, CardType.Diamonds)); players.Add(player1); players.Add(player2); players.Add(human); players.Add(player3); players.Add(player4); players.Add(player5); dealer.CheckHandPower(player1, tableCards); dealer.CheckHandPower(player2, tableCards); dealer.CheckHandPower(human, tableCards); dealer.CheckHandPower(player3, tableCards); dealer.CheckHandPower(player4, tableCards); dealer.CheckHandPower(player5, tableCards); ICharacter winner = dealer.SetWinner(players, database); Assert.AreEqual(winner, player1); }