title: WP7 - ViewModel Unit Testing
body: <p>I had a unit test project for my windows phone 7 app ViewModels using the April Tools Refresh and everything worked fine.  I just updated to the beta tools and now I can't get the test project to add a reference to nunit.  The error I receive is </p>
  
  <p>"Reference can not be added because it was not built using the Windows Phone runtime.   Windows Phone projects will work only with Windows Phone assemblies."</p>
  
  <p>What type of project should/can I create for a test project?</p>
  
  <p>I also use ReSharper to run my tests.  I was able to get it to build by copying the project from my old solution and adding it to the new beta solution.  But when I run the tests I get the following error from ReSharper:</p>
  
  <p>Unit Test Runner failed to load test assembly: JetBrains.ReSharper.TaskRunnerFramework.TaskException: Could not load file or assembly 'System.Device, Version=2.0.5.0, Culture=neutral, PublicKeyToken=24eec0d8c86cda1e' or one of its dependencies.  The system cannot find the file specified.</p>