Writing unit tests for a C++ application for Smart devices RRS feed

  • Question

  • I have to write unit tests for my smart device project on Win Mo 6.
    I am using VS2008 pro.
    Issues I am facing :

    1) The code I am writing is unmanaged (C++) and so it does not allow me to write unit tests.
    2) If I try and add a Test project to my solution, I cannot reference the .exe of the Project to be tested.

    As it appears I need to write my unit tests in managed code(C#).

    Please help me on this.

    Thanks in advance.

            - Rishi
    Wednesday, October 28, 2009 5:26 AM


  • As you know Visual Studio does not have unit testing tools for native c++ code. You need to resort to 3rd party unit testing tools/libraries. The following article will show you such a library:

    Windows Mobile Native Unit Testing
    Please mark the post that helps you, and unmark that does not. This benefits our community members.
    • Marked as answer by warrentang Tuesday, November 3, 2009 3:04 AM
    Friday, October 30, 2009 6:15 AM