We have seen that testing a complete Silverlight application is different depending on the part of the application we are testing, but it follows some general best practices and recommendations for other technologies. Fortunately, we can choose between different utilities, from integrated Visual Studio support to Silverlight-based framework. Always keep in mind that the easier the test to be executed, the more useful and more used it will be by us or by our team mates.
We have discovered that asynchronous behaviors require a special approach, and we have also learned how to test single units of code by isolating them through refactoring, interfaces, dependency injection, and mocking of external objects. Testing is a matter of a big extension and of main importance nowadays, but we have tried to give an introduction so that you can start using it in your LOB applications with Silverlight. Now you can learn more by reading the additional resources.
In the next chapter, you will learn...