1
votes

Say I have an NUnit test project written in C++/CLI, built with the /clr switch. That is, it can reference and use native code, it's not a pure managed assembly.

NUnit can run projects like these, but can this be done from Visual Studio using Resharper? I have R# 5.x, and I can't (can't even see the R# icons by the left edge of the code window to launch the tests). Can the latest version of R# do this?

1
If you want R# like features for C++ give Visual Assist X a try - mbx
I'm not so interested in refactoring capabilities as much as I am in running unit tests from inside Visual Studio. Can Visual Assist X do that? - dario_ramos
Nevermind, I just confirmed that R# can do it - dario_ramos

1 Answers

6
votes

ReSharper doesn't support C++/CLI, and thus it doesn't show Test icons in the source file. However, it should show tests from output assemblies in Unit Test Explorer (see ReSharper / Windows) and you should be able to right-click project and use Run Tests from context menu.