Testing a Windows 8 Store App with NUnit

前端 未结 2 1469
孤街浪徒
孤街浪徒 2021-02-13 03:22

I\'m currently working on a Windows Store Application (Windows 8) for a class and I\'m having problems getting my NUnit tests to run.

My Solution/Project setup looks lik

相关标签:
2条回答
  • 2021-02-13 03:45

    I have a Windows 7 Phone app which had the same issue that you have. My solution was to create a separate "linked" project which compiles the code using the standard .net libraries. The linked project will have no issues with unit test / NUnit.

    See the following for more information:

    http://msdn.microsoft.com/en-us/library/ff921109(v=pandp.40).aspx

    http://visualstudiogallery.msdn.microsoft.com/5e730577-d11c-4f2e-8e2b-cbb87f76c044/

    I've ported the app to Windows 8 and have no problems running my test cases.

    0 讨论(0)
  • 2021-02-13 04:09

    I've just hit the same error message while creating unit tests for an Universal App (W81 + WP81). The only solution here was to stop using NUnit and use MSTest only.

    0 讨论(0)
提交回复
热议问题