import XCTest
@testable import TestApp

final class VenueConfigTests: XCTestCase {

    func testInit_localVenue_preservesProperties() {
        let cfg = VenueConfig(
            venueId: "AEGIRH",
            basePath: "/var/mobile/.../venue_map_AEGIRH",
            isRemote: false
        )
        XCTAssertEqual(cfg.venueId, "AEGIRH")
        XCTAssertEqual(cfg.basePath, "/var/mobile/.../venue_map_AEGIRH")
        XCTAssertFalse(cfg.isRemote)
    }

    func testInit_remoteVenue_marksRemote() {
        let cfg = VenueConfig(
            venueId: "REMOTE_X",
            basePath: "https://example.com/maps/REMOTE_X",
            isRemote: true
        )
        XCTAssertTrue(cfg.isRemote)
        XCTAssertEqual(cfg.venueId, "REMOTE_X")
    }
}
