Thank you for reaching Telerik support.
In the latest JustMock version (JustMock Q2 Internal Build 2013.2.522), you will find the Mock.Replace() method obsoleted. Further release notes could be found here
Currently, to mock MsCorlib members you will simply need to arrange them as desired. For example, I created the following test which is mocking the DateTime.Now and testing the provided by you static function:
Mock.Arrange(() => DateTime.Now).Returns(
DateTime(2000, 12, 12));
"12/12/2000 12:00:00 AManotherRandomString"
Note that, Mock.Replace() is not being used and still the test is passing. This should allow you to arrange behavior for any MsCorlib member in any class/method under test.
I hope this helps. Contact us again if you need more help.
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