import XCTest @testable import MatchLiveTv final class LiveBroadcastCoordinatorTests: XCTestCase { func testShouldStopPreviousSessionFalseOnFirstLaunch() { XCTAssertFalse(LiveBroadcastCoordinator.shouldStopPreviousSession(active: nil, incoming: "session-a")) } func testShouldStopPreviousSessionFalseForSameSession() { XCTAssertFalse(LiveBroadcastCoordinator.shouldStopPreviousSession(active: "session-a", incoming: "session-a")) } func testShouldStopPreviousSessionTrueWhenSwitching() { XCTAssertTrue(LiveBroadcastCoordinator.shouldStopPreviousSession(active: "session-a", incoming: "session-b")) } }