import XCTest
@testable import MastermindPOCCore

final class TrustStatusTests: XCTestCase {
    func testMenuBarTitlesDescribeVisibleAssistantState() {
        XCTAssertEqual(TrustStatus.idle.menuBarTitle, "Mastermind: Idle")
        XCTAssertEqual(TrustStatus.listening.menuBarTitle, "Mastermind: Listening")
        XCTAssertEqual(TrustStatus.screenContext.menuBarTitle, "Mastermind: Screen")
        XCTAssertEqual(TrustStatus.systemAudio.menuBarTitle, "Mastermind: System Audio")
        XCTAssertEqual(TrustStatus.paused.menuBarTitle, "Mastermind: Paused")
        XCTAssertEqual(TrustStatus.error("No permission").menuBarTitle, "Mastermind: Error")
    }

    func testCaptureStatesIdentifyActiveCapture() {
        XCTAssertFalse(TrustStatus.idle.isCapturing)
        XCTAssertFalse(TrustStatus.paused.isCapturing)
        XCTAssertTrue(TrustStatus.listening.isCapturing)
        XCTAssertTrue(TrustStatus.screenContext.isCapturing)
        XCTAssertTrue(TrustStatus.systemAudio.isCapturing)
    }
}
