I am quite new to both C++ and Visual Studio. I’ve got a solution with one project, which is my application. Now I’ve got to write some C++ classes that form a functional unit. I want to put them separately, probably in their own project (Anything else like “packages” do in Java would be sufficient. Unluckily, I only find myself in Visual Studio with three virtual folders (headers, resources, classes) which even map to the same folder on disk. At least, I would wish to visually separate the classes with headers in the front-end, if the same happens on file system level it would be fine.) and I want to be able to unit-test them from Visual Studio’s test running interface.
The MSDN tutorial to set up a unit test assumes a DLL being tested. As per comment, it isn’t absolutely necessary to make a DLL for this. Putting classes in DLLs seems to complicate things by a lot. I do not need to load the machine code dynamically and I would like to use my classes as easy as if they were in my application project. Just I want to have it separate somehow and I want write unit-tests for them which should also be separated from both my main program and from the code under test. How can I set this up in a simple manner?