public void Delete_tileset() { var tileToKeep = new Tile { X = 1, Y = 2, Zoom = 3, TileSetName = "setToKeep" }; var tileToDelete = new Tile { X = 2, Y = 3, Zoom = 4, TileSetName = "setToDelete" }; _repository.Save(tileToKeep); _repository.Save(tileToDelete); _repository.DeleteTileSet("setToDelete"); Assert.Equal(1, _repository.CountTiles()); var loadTile1 = _repository.TryGetTile(tileToKeep.X, tileToKeep.Y, tileToKeep.Zoom, tileToKeep.TileSetName); var loadTile2 = _repository.TryGetTile(tileToDelete.X, tileToDelete.Y, tileToDelete.Zoom, tileToDelete.TileSetName); Assert.NotNull(loadTile1); Assert.Null(loadTile2); }