I would like to make sure that in one particular case a certain NSNotification
is not sent. Is there an easy way to achieve this with XCTestCase
?
Create a helper method to subscribe to the NSNotification. Upon receiving it, set a BOOL. Test against that BOOL's value (lack of being changed).