This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I don't how to add a throw IllegalArgumentException in my method. This formula (the slope formula) fails for points with identical x-coordinates and i need a throw IllegalArgumentException. I haven't learned about this yet so any help would be great!
You can be as general or as detailed as you want to be in how you test for conditions (separate tests for each, or just one big AND or OR that's a simple pass/fail) and how much information you provide about what was wrong and why.