import XCTest
@testable import MastermindPOCCore

final class OverlayActionsTests: XCTestCase {
    func testOverlayActionsInvokeInjectedCallbacks() {
        var openedSettings = false
        var hidOverlay = false
        var quitApp = false

        let actions = OverlayActions(
            openSettings: { openedSettings = true },
            hideOverlay: { hidOverlay = true },
            quitApp: { quitApp = true }
        )

        actions.openSettings()
        actions.hideOverlay()
        actions.quitApp()

        XCTAssertTrue(openedSettings)
        XCTAssertTrue(hidOverlay)
        XCTAssertTrue(quitApp)
    }
}
