Test-driven development is something that every developer can appreciate once they?ve tried it, and something that I?ve worked hard to enable for Silverlight with the release of the controls source. Scott Guthrie previously posted about the Silverlight 2 Beta 1 release, with a First Look at Silverlight 2 post followed by the First Look at Using Expression Blend with Silverlight 2. If we could take the same application from the Blend post & create a set of unit tests for the components in the app, it would pay dividends once we start adding new features or working with other developers on the project.

If you?d like to hear more about any part of the framework, let me know in the comments and I?ll come back with that information. Previous posts that may be helpful if you don?t have time to complete this tutorial today: a video walkthrough of the control unit tests, and a quick introduction to the unit testing bits with download locations and installation instructions.

Test support for Silverlight
At MIX we released source code to the controls, unit tests, and we including a unit test framework that runs in the web browser using Silverlight on the Mac and PC. The Microsoft.Silverlight.Testing framework is simple, easy-to-use, and will give developers yet another way to increase their productivity and application quality.

Download pdf Unit Testing with Silverlight 2