XCTKeyPathExpectation
An expectation that a specific key-value observing (KVO) condition fulfills.
Declaration
final class XCTKeyPathExpectation<T, V> where T : NSObjectOverview
Use an instance of this class to asynchronously wait for changes to a property you specify by key path for a given object. When the value of the property changes, the expectation compares the new value using a predicate or expected value you provide.
Topics
Creating key path expectations
init(keyPath:observedObject:options:expectedValue:)init(keyPath:observedObject:options:predicate:)init(keyPath:observedObject:options:filter:)init(keyPath:observedObject:options:filter:)XCTKeyPathExpectation.AsynchronousFilterXCTKeyPathExpectation.SynchronousFilterXCTKeyPathExpectation.Predicate