Esempio n. 1
0
    public void TestGetAllTiles()
    {
        Assert.AreEqual(0, manager.GetAllTiles().Count);

        manager.AddPlayer(player);
        Assert.AreEqual(3, manager.GetAllTiles().Count);

        manager.AddPlayer(player_other);
        Assert.AreEqual(6, manager.GetAllTiles().Count);

        TileInstance tile = new TileInstance();
        TilePosition pos  = new TilePosition(0, 0);

        tile.position = pos;
        tile.owner    = player;
        Assert.AreEqual(7, manager.GetAllTiles().Count);
    }