public void SimplePlayer_WillPick() { var mainPlayer = new SimplePlayer(new Participant()); { var playerList = new List <IPlayer>() { player1, player2, mainPlayer, player3, player4 }; var handMock = GenerateHandMock(playerList); handMock.Setup(m => m.StartingPlayer).Returns(player2); Assert.IsFalse(mainPlayer.WillPick(handMock.Object), "Simple Player should not pick if he is not last."); } { var playerList = new List <IPlayer>() { player1, player2, mainPlayer, player3, player4 }; var handMock = GenerateHandMock(playerList); handMock.Setup(m => m.StartingPlayer).Returns(player3); Assert.IsTrue(mainPlayer.WillPick(handMock.Object), "Simple Player should pick if he is last."); } { var playerList = new List <IPlayer>() { player1, player2, player3, player4, mainPlayer }; var handMock = GenerateHandMock(playerList); handMock.Setup(m => m.StartingPlayer).Returns(player1); Assert.IsTrue(mainPlayer.WillPick(handMock.Object), "Simple Player should pick if he is last."); } { var playerList = new List <IPlayer>() { player1, player2, player3, player4, mainPlayer }; var handMock = GenerateHandMock(playerList); handMock.Setup(m => m.StartingPlayer).Returns(player3); Assert.IsFalse(mainPlayer.WillPick(handMock.Object), "Simple Player should not pick if he is not last."); } }