Hi,
We have been creating silverlight unit tests by creating a plain vanilla .net unit test project, removing all references except for the unittestframework one, and then adding references to the SL assemblies we need (system, System.Core, ...). For more information, look at this blog post. We can do this, as we are adhering to the MVVM pattern and have close to no code in the codebehind. We are not testing the view, but the functionality in all the layers behind (VM-M basically).
Now, this allows us to test the silverlight logic in our team build every night. This works pretty well, until we start mixing SL projects and normal .NET projects. When we select all SL unit tests and run them, they pass. The same goes for the .NET unit tests. When we run them all at once however, either one set or the other fail completely. The message we are seeing states : "Unit Test Adapter threw exception: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..". I guess the issue is that these two sets of tests are using different system assemblies, but I haven't been able to pinpoint the problem.
Has anyone tried this? Cheers, Phil