Testing Code with Unit Tests

Unit tests enable testing code portions outside the application context to check if they work correctly so that testing is basically abstracted from the application. Typically you create a test project, where there are classes and methods that encapsulate and isolate the original code so that you can test it in a kind of isolated sandbox without editing the source project. Visual Studio 2010 is the ideal environment for performing unit tests, so this section explains how you can accomplish this important task.

Get Visual Basic® 2010 Unleashed 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.