Then you can write Unit Tests by hand as: [TestClass] public ref class TestClass {public: [TestMethod] void Test() {} }; You can use full power of unmanaged C++, call your native code directly, etc inside your Unit Tests.
The are other options but I would say you don't want to do that:
- Write managed C++ wrapper and auto-generate Unit Tests for the managed C++ wrapper.
- Create new VB, C# or MC++ Test Project and call your unmanaged code from test methods using [DllImport].
- If your C++ code is COM typelib, you could register the lib, and could add the lib to your test project's references (via COM tab in Add references dialog). Then you can exercise your C++ code in managed test code.
Thanks,
Michael