Chapter 4. Unit Testing

Unit testing is a type of testing or the technique to take the smallest piece of testable code isolated from the remaining software in the application and then determine whether it behaves as expected. Enterprise software applications usually comprises of multiple methods and functions with multiple lines of code integrated together. Identifying the piece of code that produces the defect is always a time-consuming task and the cost involved is also high. It is always a good practice to test the code in units and confirm the expectations before integrating the code module(s). Requiring all code to pass the unit tests before they can be integrated ensures standards and quality. It is the responsibility of the developer who ...

Get Software Testing using Visual Studio 2012 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.