I am trying to create a unit test project in Visual Studio. The code I want to test is in c++ and I want to write the tests in C++. Is this possible?
Also, all I find is about projects that export static or dynamic libraries. My project exports nothing, it's a simple console application, and I don't want to turn it into a library.
I have tried various tutorials on the net and all I get is either guideliness about testing static/dynamic libraries (which I know nothing about) or things that end up with me getting the unresolved external symbol..
error when compiling the test.
Is there a unit test, project template where I just declare where is the solution I want to test?
Yes, it is possible, you simply need to add the .obj or .lib file(s) of the project under test to the dependencies of the test project.
Basically, every case is covered in msdn