raiseException
should optionally match on name
, reason
, and userInfo
in Objective-C
#26
Milestone
raiseException
should optionally match on name
, reason
, and userInfo
in Objective-C
#26
Currently I can write the following in Objective-C:
But I can't make an expectation on the
name
of the exception, nor thereason
, nor theuserInfo
.In Swift, you can write an expectation that only passes when the
name
andreason
match (withuserInfo
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?The text was updated successfully, but these errors were encountered: