Improving Unit Testing for Visual C++
January 25th, 2011
No comments
Visual Studio comes with an interesting tool for unit testing as described in this post, but this solution had the following disadvantages due to using C++\CLI:
- Intellisense not supported for C++\CLI.
- Assert is designed for .Net languages , and using it for native C++ induce using some workarounds like:Assert for string,Assert::IsNullPointer.
- nullptr exist both in C++0x and CLI and concerning test for C++0x code we have to use __nullptr instead.
- Many developers dont understand why they have to use C++\CLI to test native C++.
Categories: C++
