Can I use Visual Studio testing tools in my own code?

Can I use the Visual Studio testing framework with native code? I don't mind recompiling the code itself in C ++ / CLI if it is possible that the code can be recompiled without modification - but the production code must be uploaded as native code.

The Premium Edition comes with code support that I could get cheap from my university, but I can get the Professional Edition for free from DreamSpark, and that's the only thing I can see what I will be using. (But I would use a LOT of it)

+2


a source to share


1 answer


Well, I can't answer my own question, but the answer won't be :

This will not fly, you cannot use unmanaged code when compiling in safe mode. This prevents any of the unmanaged CRT headers from being used.



Unit testing requires / clr: safe. In other words, no, this is not supported. Sigh

+1


a source







All Articles