25 March 2008
In my introductory post about the Silverlight unit testing work we’ve done, I also included some Visual Studio project and item templates that make it easier to add tests to your own apps and class libraries. Here’s that information in one place:
To install the template, save this file into your “%userprofile%\Documents\Visual Studio 2008\Templates\ProjectTemplates” directory
This project template is used for adding tests to your existing Silverlight solution. To use the test project once added to your project, simply right-click on it, set it as the ‘StartUp project’ and begin debugging.
To install, save this into “%userprofile%\Documents\Visual Studio 2008\Templates\ItemTemplates”
This is a simple test class template that includes the unit test metadata namespace, a sample test class, and a single inconclusive test method.
Test projects meet these conditions:
Hope this helps!
Jeff Wilcox is a Principal Software Engineer at Microsoft in the Open Source Programs Office, helping Microsoft scale to 15,000+ engineers using, contributing to and releasing open source.