Hi Frank
If I understand your question correctly you need to look down the
lines of building a project structure that will support your existing
application and let you also run unit tests. You might consider
spilting your existing solution in to two projects:
- One which will build the bulk code of your application's logic in to
a library (or DLL)
- One which will build an executable, containing the UI, which will
make calls in to your library (project depends on the library).
When you have this working you can then add yet another project to the
solution which canl make unit test calls to the library. You can then
define your unit tests and mocks here or create yet another project to
separate them. This will let you test the functionality in your
library (but not your UI). All in all you will end up with 3
components: an library, an exe for your application and an exe for
your tests.
You may want to check out my recent blog entry on setting up GTest for
Visual Studio for more details on how I did this:
http://leefw.wordpress.com/2010/11/17/google-test-gtest-setup-with-microsoft-visual-studio-2008-c/
Hope this is of some use to you.
Regards
Lee Francis Wilhelmsen