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 Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
+1 vote
#include \"GPSLocation.h\"
enum states { state1 = 1, state2 = 2 };
struct SOMEOBJECT1 { int x; };
struct SOMEOBJECT2 { int y; };
class Person
void WriteAllTransportStops(GPSLocation* locations);
void ForceTest() { TestRedirect(state1, nullptr); }
    SOMEOBJECT1* TestRedirect(enum states, SOMEOBJECT2** retval);
    bool ChangeLastName (char** otherLastName);
in DoInsteadTests.cpp just below GetOtherTickCount function add:

class Alt {
    ISOLATOR_TESTABLE SOMEOBJECT1* TestRedirect(enum states,     SOMEOBJECT2**) { return nullptr; }
and add the following test:

TEST_METHOD(ReplacingInstanceMethodInvolvingReturnParam) {
    Alt alt; Person* person = new Person();
    PRIVATE_WHEN_CALLED(person, TestRedirect, _, _).DoMemberFunctionInstead(&alt, TestRedirect);

P.S I am using Isolator version
asked by AndrePeterson (620 points)

1 Answer

+1 vote

Its a well-known issue, try downloading the latest version, that should fix the issue.
answered by David (1.9k points)