chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Answers. Here you can ask and receive answers from other community members. And if you liked or disliked an answer or thread: react with an up- or downvote Enjoy!

Getting error on runtime

+1 vote

Hello,

I get the following error on runtime

It looks like type mock needs ISOLATOR_TESTABLE for each function in a class

please advise

The function 'Person::getName' couldn't be found. If the method is not called in the code under test it will be optimized away.Remove any inline keywords, and Add ISOLATOR_TESTABLE to the method.

asked Aug 29 by IlanG (3,780 points)

1 Answer

0 votes

Hi,

Try adding in the test initialization the lines:

TEST_METHOD_INITIALIZE(TestInit) {

   MockC dummy; // To resolve this issue

   C dummy; // To resolve ISOLATOR_INVOKE_CONSTRUCTOR issue

  }

answered Aug 29 by David (1,420 points)
...