Hi Maciej Oblaza,
Welcome to MSDN forum,
According to your description, we recommend you could follow this workaround to
write a unit test for visual C++:
And for your issue, please check if link the related libraries or objects into your test project. Please follow the steps:
- In Solution Explorer, right-click on project node for the program you are testing, then choose Properties > Configuration Properties > VC++ Directories.
- Click on the down arrow in the "Library Directories" and "Include Directories" and choose <Edit>.
Please refer more here: To link the tests to the object or library files
Any feedback will be expected.
Best Regards,
Dylan
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any
compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com