 import XCTest
+import Combine
 import SwiftUI
 
 @testable import ViewInspector

    }
    
    func testEnvironmentStateChanges3() throws {
        let object1 = ExternalState1(), object2 = ExternalState2(), object3 = ExternalState3()
        let view = EnvironmentStateTestView3()
        let text1 = try view.inspect(object1, object2, object3).text().string()
        XCTAssertEqual(text1, "obj1obj2obj3")
        object3.value = "abc"
        let text2 = try view.inspect(object1, object2, object3).text().string()
        XCTAssertEqual(text2, "obj1obj2abc")
    }

    }
    
    func testExtractionEnvView3FromSingleViewContainer() throws {
        let object1 = ExternalState1(), object2 = ExternalState2(), object3 = EnvironmentParameter()
        let view = AnyView(EnvironmentStateTestView3())
        XCTAssertNoThrow(try view.inspect()
            .view(EnvironmentStateTestView3.self, object1, object2, object3))
