I just spent the better part of the afternoon building a simple test harness infrastructure using CppUnit and VS.NET. Here’s the sample VS.NET solution.
There are three C++ projects in the solution. The Library project contains the code library that is under development. It is compiled into a static link library. The DLL project uses the Library static link library to generate a DLL. The Harness project contains all of the test cases that will be run against the code in the Library project.
I think that this is a reasonable layout for the code in these projects. Please email me if you think otherwise.