Creates an expectation that uses Key Value Observing to observe a value until it matches an expected value.
- Xcode 7.2+
The object to observe.
The key path to observe.
Expected value of the value specified by
key. The expectation will fulfill itself when the value at
keyis equal to
expected, as tested using isEqual:. If
nil, the expectation will be fulfilled by the first change to the key path of the observed object.
Creates and returns an expectation associated with the test case.
XCTest that uses Key Value Observing to observe changes on the provided object until the value specified by
key matches the expected value using isEqual:.