Testing and debugging are vital activities in building quality software. From a developer’s perspective, unit testing ensures small units of code work. By having a suite of tests, it is easy to catch a bug introduced into code that was previously shown to be bug free. Testing helps ensure software quality by catching as many bugs as possible and proactively ensuring bugs aren’t introduced. Debugging, however, is generally done after a bug has been found. Debugging involves tools and an effective problem-solving process to find the root cause of a bug in order to apply a fix. You can build defenses into your application to make debugging easier, such as error logs (to capture errors) and audit logs (to reconstruct what the user of the application did to trigger the bug). This chapter aims to show you how to go about testing Silverlight applications and preparing for and conducting debugging when things do go wrong.
KeywordsUnit Test Visual Studio Class Library Code Coverage Conditional Attribute
Unable to display preview. Download preview PDF.