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.
0 votes
In tested assembly:
class A{
protected internal int Do(int i);
}


Assembly with tests is marked with InetnalsVisible for tested assembly

class Fake{
public int Do(int i);
}


when I try to do the following i get exception
Isolate.Swap.CallsOn(AInstance).WithCallsTo(FakeInstance);

but if I change A class method to be public, it works fine

exception has message "no matching methods found"

I tried to make Fake method protected internal, no luck...
asked by knst (2.9k points)

1 Answer

0 votes
Unfortunately it seems to work on my machine - lets take it offline and further investigate this issue
answered by dhelper (11.9k points)
...