//Test player
goFish.getPlayer().getHand().addCards(list);
assertTrue(goFish.checkForMatch());
//Test computer
goFish.setState(new ComputerTurnSate());
goFish.getComputer().getHand().addCards(list);
assertTrue(goFish.checkForMatch());
//Remove all cards and make sure no matches are found
for (int i = 0; i < goFish.getPlayer().getHand().getSize();)
{
goFish.getPlayer().getHand().removeCard(i);
goFish.getComputer().getHand().removeCard(i);
}
//Test player
goFish.setState(new PlayerTurnState());
assertFalse(goFish.checkForMatch());
//Test computer
goFish.setState(new ComputerTurnSate());
assertFalse(goFish.checkForMatch());
}