I am new to gtest and gmock but certainly finding it useful. Currently I have built gtest and wrote sample test cases and executed them to see a proper workflow of gtest.
As in my main usecase the library I want to unit test is a dll (dynamic linking library). Until now I have created the project as static library and and wrote unit test cases for the same and it works fine but when I build it as dll, visual studio gives me linker error while trying to find Calculator.lib
. Shouldn't it find Calculator.dll
in this case.
Why it is going to find the .lib
?I wonder how can I load dll to write unit test cases for ?
I am new to it, please pardon me for stupid question.