Does any one know if I can test native code in VS Test 2010?
+2
A:
As of VS2010, native C++ unit testing is not directly supported by Visual Studio. See MSDN, specifically:
You cannot have test projects with unit tests that use unmanaged C++.
You can still do native C++ unit testing with Visual Studio, but it won't be as integrated as other VS features. See this SO answer for a number of native unit testing frameworks and libraries. I have not used any of those, so I cannot give any guidance there.
Chris Schmich
2010-10-06 21:27:02
+1
A:
I would bite the bullet, download Boost and get the test suite compiled. Once you get into it, it's as easy as VS tests.
DanDan
2010-10-06 21:42:17
Or if you don't want to pull in boost (which is great BTW) go for UnitTest++.
ceretullis
2010-10-06 21:50:33