private void CheckIfPlayerHasAnyTiles() { if (validatable.CurrentPlayer().Tiles.Count == 0) { result.Message = "Player has no tiles"; } }
public void Setup() { gridModelTiles = new GridModelTile[15, 15]; gridModelable = Substitute.For <IGridModel>(); gridModelable.Grid.Returns(gridModelTiles); validator = new GoValidator(gridModelable); validatable = Substitute.For <Validatable>(); playerTiles = new List <Tile>(); player = Substitute.For <IPlayer>(); player.Tiles.Returns(playerTiles); validatable.CurrentPlayer().Returns(player); boardTiles = new List <Tile>(); validatable.BoardTiles.Returns(boardTiles); }