Testing a Windows 8 Store App with NUnit

前端 未结 2 1474
孤街浪徒
孤街浪徒 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.

提交回复
热议问题