Chapter 56. Testing Code with Unit Tests, Test-Driven Development, and Code Contracts

When you purchase new software, you expect that such software works. I’m pretty sure you don’t like applications you buy to cause unexpected crashes or errors due to apparently unhandled situations. The same is true for users purchasing your software or for colleagues in your company performing their daily work through your applications, so you need to pay particular attention to how your code works. Although implementing error handling routines is fundamental, another important step in application development is testing code. Testing enables ...

Get Visual Basic® 2012 Unleashed, Second Edition 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.