Search code examples
c++unit-testingmicrosoft-fakes

Does Microsoft fakes framework support c++/unmanaged code


We are developing unit tests for already existing code in c++. In the recent TechEd heard about Microsoft fakes framework for unit test isolation. But the TechEd video does not show that it is supported for c++ or not. No such this is said on msdn as well. But all examples on msdn is for c# and VB.

Does anyone know if it is supported or not. If not what framework would you recommend for already existing c++ code which is not developed with unit testing in mind.


Solution

  • So, finally microsoft responded to the question and the conclusion is, fakes does not support c++/unmanaged code.

    https://connect.microsoft.com/VisualStudio/feedback/details/890349/does-microsoft-fakes-framework-support-c-unmanaged-code