I'm looking to start a project targeting Windows Phone, but I'm slightly put off by the lack of unit testing support[1].
I'm used to using NUnit/ XUnit for most of my testing needs, with something like NSubstitute for mocking. Near as I can tell, you can't use these frameworks for Windows Phone projects...
Given some investigation, I was wondering if the following scenario would work:
By using a Portable Class Library, I'm hoping that the unit tests will be as close as possible to running on the device, without having to crack open the emulator.
Another plus point is that I can see that this solution working within a TFS build environment - so running the tests are part of a CI build...
I was hoping to gauge peoples opinion on if this is a sensible move, or a fools errand...
Thanks,
Kieron
[1] I know there are solutions out there, but none that seem as integrated as full framework testing - I'm talking specifically about support in VS2012/ Resharper for running unit tests without the need for an emulator.
[2] Does anyone know if you can target Windows Phone 7.x using the WP8 SDK?
Update: Unit testing for Windows Phone 8 is supported now.