Integrate live phone and watch remote prototype with guarded motion control
This commit is contained in:
@@ -70,3 +70,13 @@ import WatchBridgeCommon
|
||||
_ = try RelayApplicationContext(dictionary: executable)
|
||||
}
|
||||
}
|
||||
|
||||
@Test func readinessContextRequiresBooleanAndSelectedIdentity() throws {
|
||||
let id = UUID()
|
||||
let context = RelayApplicationContext(selectedTelevisionID: id, displayName: "Living room", isConnectionReady: true)
|
||||
#expect(try RelayApplicationContext(dictionary: context.dictionary()) == context)
|
||||
#expect(!RelayApplicationContext(selectedTelevisionID: nil, displayName: nil, isConnectionReady: true).isConnectionReady)
|
||||
#expect(throws: RelayContainerError.self) {
|
||||
try RelayApplicationContext(dictionary: ["schemaVersion": 1, "isConnectionReady": 1])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user