Beispiel #1
0
    public void TestGetTileCount()
    {
        // TODO: Add your test code here
        TileRepository repository = new TileRepository(config);

        Assert.That(repository.GetTileCount(0), Is.EqualTo(2));
        Assert.That(repository.GetTileCount(1), Is.EqualTo(3));
    }
Beispiel #2
0
    public TilesStack(TileRepository tr)
    {
        stack = new Stack <Tile>();

        for (int type = 0; type < tr.GetTileTypeCount(); type++)
        {
            for (int i = 0; i < tr.GetTileCount(type); i++)
            {
                stack.Push(tr.GetTile(type));
            }
        }
    }