anyone have a link or two to the IOS / OCUnit documentation for “STAssertThrows”
The API doco + an example of how to use would be great
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here are the docs.
Usage is fairly straight forward, say you have a method
Then this assertion will always pass
You will probably want to use
STAssertThrowsSpecificorSTAssertThrowsSpecificNamedinstead since you might run into hard to catch bugs if you just catch any exception.