How to run and debug silverlight unittests inside Microsoft Visual Studio 2010
The Microsoft Test project template in Microsoft Visual Studio 2010 does not support adding a reference to a Silverlight class library. To unittest a function in a Silverlight class library you can follow the steps