import XCTest
@testable import ByteLystPlatformSDK

final class BLKillSwitchClientTests: XCTestCase {

    private func makeConfig() -> BLPlatformConfig {
        BLPlatformConfig(
            productId: "testapp",
            baseURL: "http://localhost:4003",
            bundleId: "com.bytelyst.test"
        )
    }

    func testDefaultState() {
        let client = BLKillSwitchClient(config: makeConfig())
        XCTAssertFalse(client.isDisabled)
        XCTAssertEqual(client.maintenanceMessage, "")
    }

    func testReset() {
        let client = BLKillSwitchClient(config: makeConfig())
        // Manually test reset clears any hypothetical state
        client.reset()
        XCTAssertFalse(client.isDisabled)
        XCTAssertEqual(client.maintenanceMessage, "")
    }
}
