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
We store all of the dates in the DB in UTC and thus all of the business logic operates in UTC time as well. I find that DateTime.UtcNow is not mockable, even though DateTime is a supported mscorlib type. Is this a bug?
asked by roman (2.2k points)

4 Answers

0 votes
Hello Roman,

sorry for the late reply, we plan on rolling support for more mscorlib types in the next major release of Isolator, which is due soon.

In the mean time, we've added support for DateTime.UtcNow in this Isolator version. Please try it and let us know if there are any more types which you'd like to fake: https://www.typemock.com/patches/Typemoc ... 10.560.msi
answered by igal (5.7k points)
0 votes
Hi igal,

How proceeds work on allowing all mscorlib types to be faked? I believe Gil mentioned a while ago somewhere that it was possible.
answered by Neil (27.7k points)
0 votes
Hi Neil.

Unfortunately, we still don't have a general solution for mscorlib. We may be able to provide you with specific class solution.

What classes do you need to fake?
answered by yoel (1.9k points)
0 votes
What classes do you need to fake?

Environment, Directory, and Process come to mind.
answered by Neil (27.7k points)
...