public void AdminReturnsPlayersArray() { var players = BattleShipAdmin.Initialize(); Assert.NotNull(players); Assert.IsType <Player[]>(players); Assert.Equal(2, players.Length); }
public void AdminSetsTheOpponent() { var players = BattleShipAdmin.Initialize(); var player1 = players[0]; var player2 = players[1]; Assert.NotNull(players); Assert.NotNull(player2.opponent); Assert.NotNull(player1.opponent); Assert.Equal(player2, player1.opponent); Assert.Equal(player1, player2.opponent); }
public IPlayer[] Initialize() { return(BattleShipAdmin.Initialize()); }