import XCTest



class UtilitiesTests: XCTestCase {
  #warning("These tests require a test host application to run in. That’s not currently possible with SwiftPM.")
//  func testRootViewControllerIsReplaced() {
//    let oldRoot = UIViewController()
//    UIApplication.shared.keyWindow?.rootViewController = oldRoot
//    XCTAssertEqual(UIApplication.shared.keyWindow?.rootViewController, oldRoot)
//
//    Util.withNewRootController { root in
//      XCTAssertNotEqual(oldRoot, root)
//    }
//
//    XCTAssertEqual(UIApplication.shared.keyWindow?.rootViewController, oldRoot)
//  }
}



