3

Does any one know if I can test native code in VS Test 2010?

Chris Schmich
  • 28,454
  • 5
  • 73
  • 94

2 Answers2

2

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.

Community
  • 1
  • 1
Chris Schmich
  • 28,454
  • 5
  • 73
  • 94
1

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
  • 10,235
  • 8
  • 50
  • 68