Thank you for contacting us.
To achieve this, you will have to use a delegate
in the Returns function. Like this:
Mock.Arrange(() => Real.RealMethod(Arg.IsAny<
IntPtr b) => Fake.FakeMethod(a,
result = Real.RealMethod(1,
As you can see, I also added assertion at the end of the test in order to check if everything is correct.
I hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.