Dave Mooney
Dave Mooney

Reputation: 783

Is Visual Studio 2010's unit testing feature usable for native C++ code?

It seems to be mainly tailored to .net code.

Upvotes: 1

Views: 1347

Answers (2)

Andy Dent
Andy Dent

Reputation: 17971

You can't get the slick attribute-driven features of managed test frameworks with native unit test frameworks. If you want a graphical runner which lets you select individual tests or fixtures within Visual Studio, grab the excellent, free Visual Assert. It supports both the cfix framework and (via cfix) a WinUnit compatibility mode. I've been happily using it for several months now in both 2008 and 2010.

Upvotes: 2

Mitch Wheat
Mitch Wheat

Reputation: 300759

Only managed C++ (/clr:safe): Unit Tests and C++

You could use WinUnit (if you are not already): Simplified Unit Testing for Native C++ Applications

Upvotes: 2

Related Questions