I was unable to reproduce the "returns null" behavior using the code you gave us. Taken as is, the code throws an exception because there's no method called "CleanpUrl
". The name must match exactly, so I fixed the name to read "CleanupURL". Now the CallMethod call returned the string value "server/subsite/"
, as one would expect. I've attached the project I used for testing. You can take a look at it and try to spot any differences between your code and the sample code. Alternatively, you could wrap the test code in a minimal repro project and send it to us for investigation.
Could you also try running the tests without dotCover? Although unlikely, it may be subtly changing the behavior of PrivateAccessor.
I hope that your issue gets resolved quickly and you can continue with your trial.
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.