public void TestGetTileTypeCount() { // TODO: Add your test code here TileRepository repository = new TileRepository(config); Assert.That(repository.GetTileTypeCount(), Is.EqualTo(2)); }
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)); } } }