简体   繁体   中英

Unit Testing in VS 2010 Express for Windows Phone

I am developing a Windows Phone 7 project and wish to test the app's business logic (ie just the vanilla C# code) within stand-alone unit tests, run on Windows from the command line (from Jenkins) rather than on a device.

What's the best way of achieving this using the free Express tools only?

Currently I am thinking of:

  • Developing the main WP7 project using VS Express WP as usual
  • Having a build script copy the WP7 code and generate a VC# console project file containing each source file
  • Create unit test code in this second project using Visual C# 2010 Express
  • Compile test code for Windows and run unit tests using NUnit, Express Unit or similar.

Sounds like a whole lot of hassle, does anyone have experience of a nicer option than this?

Have a look at this question: State of unit testing for Windows Phone

It has some nice ideas and hints and I am afraid that it isn't much better at this time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM