Class

XCTDarwinNotificationExpectation

An expectation that is fulfilled when an expected Darwin notification is received.

Declaration

@interface XCTDarwinNotificationExpectation : XCTestExpectation

Overview

If a custom handler value is not provided, the expectation will be fulfilled as soon as a matching Darwin notification is received from any process.

Topics

Creating Darwin Notification Expectations

- initWithNotificationName:

Creates an expectation that waits for a Darwin notification with the specified name to be posted.

Expectation Properties

notificationName

The name of the notification that the expectation is waiting for.

Custom Notification Evaluation

handler

An optional handler that performs custom evaluation of matching notifications.

XCTDarwinNotificationExpectationHandler

A custom handler to be called when a matching notification is received.

Relationships

Inherits From

See Also

Notification-Based Expectations

XCTNSNotificationExpectation

An expectation that is fulfilled when an expected NSNotification is received.