2.2. Developer Testing

Developer testing covers a wide variety of techniques; however, the general theme is to create automated tests to verify that the method has been implemented correctly. In other words, developer testing generally involves writing tests using code, generally the same language that the main application has been created in. Because they are in code, they can be run as often as required. These tests should be used to verify that your own assumptions are correct and that the implementation is correct — both when it has just been developed and going forward. There are also many other advantages, such as improved design, readability, and allowing for shared understanding of the code which we will discuss throughout this chapter. The most fundamental technique of developer testing is unit testing.

Get Testing ASP.NET Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.