COR[R]ECT: [R]eference
Learn about the importance of using references in writing unit tests.
When testing a method, consider:
- What does it reference outside of its scope?
- What external dependencies does it have?
- Does it depend on the object being in a certain state?
- Are there any other conditions that must exist?
A web app that displays a customer’s account history might require the customer to be logged on. The ...
Access this course and 1400+ top-rated courses and projects.