105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
-
+
|
TEST(@"-[postNotification:] #3",
R([center postNotification: notification]) &&
test1->_received == 1 && test2->_received == 3 &&
test3->_received == 0 && test4->_received == 0)
#ifdef OF_HAVE_BLOCKS
__block bool received = false;
OFNotificationCenterHandle *handle;
id handle;
notification = [OFNotification notificationWithName: notificationName
object: self];
TEST(@"-[addObserverForName:object:usingBlock:]",
(handle = [center addObserverForName: notificationName
object: self
usingBlock: ^ (OFNotification *notif) {
|