Create COM unit tests based on CoCreateInstance() function.
end2endzone opened this issue · comments
Is your feature request related to a problem? Please describe.
The application has unit test for the shell extension's entry point. These tests connects to the dll directly using LoadLibrary()
, FreeLibrary()
and GetProcAddress()
to test the expected behavior's of the shell extension entry points.
For stronger reliability, test that forces the library to be loaded as a COM object should also be added. That is, the library should be loaded through CoCreateInstance()
function.
Describe the solution you'd like
Refer to https://stackoverflow.com/questions/43010172/addref-and-release-in-iunknown-what-do-they-actually-do for examples of code that is able to instantiate the library.
Describe alternatives you've considered
N/A
Additional context
N/A