`raiseException` should optionally match on `name`, `reason`, and `userInfo` in Objective-C
Currently I can write the following in Objective-C:
// Objective-C expectAction( [NSException raise:NSRangeException format:@"Now you've gone too far!"] ).to(raiseException());
But I can't make an expectation on the name of the exception, nor the reason, nor the userInfo.
In Swift, you can write an expectation that only passes when the name and reason match (with userInfo support coming soon in #12). I think you should be able to do the same in Objective-C.
What should the syntax look like? I like beCloseTo(expected).within(delta). How about the following as a first draft?
expectAction( [NSException raise:NSRangeException format:@"Now you've gone too far!"] ).to(raiseException(). named(NSRangeException). withReason(@"Now you've gone too far!"). andUserInfo(@{@"length": @10}));