Thank you for contacting Telerik support.
To help you further, I would suggest you to check this
article about Future Mocking with JustMock.
Having the above, I would use JustMock to write your arrange the following way:
var mSomeClassMock = Mock.Create<MSomeClass>();
var expected =
Mock.Arrange(() => mSomeClassMock.GetError()).IgnoreInstance().Return(expected);
This will intercept all "MSomeClass" instances and will arrange the "GetError()" method to return an empty string when called.
I hope this helps. Please contact us further if you have more questions.
the Telerik team
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums
, or our JustTrace