예제 #1
0
 private void CheckIfPlayerHasAnyTiles()
 {
     if (validatable.CurrentPlayer().Tiles.Count == 0)
     {
         result.Message = "Player has no tiles";
     }
 }
예제 #2
0
 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);
 }