You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the quickstart instructions exactly, trying to mock DateTime.Now from a simple Console application (based on .NET 4.6.1), but the actual mocking just does not take place, I always get the real date from DateTime.Now without getting any errors (that might give a hint that some critical part is missing).
{PDateTime.NowGet().Body=()=>newDateTime();varx=DateTime.Now;// always outputs real date/timeSystem.Console.WriteLine("Time: "+x.ToString("G"));System.Console.ReadLine();return;}
Am I missing something something important?
The text was updated successfully, but these errors were encountered:
I am facing the same issue. The test does not use the mocked values at all :(
Also to add, the Urasandesu.* dlls were not added automatically, I had to search and track it in Program data folder and add it manually. Maybe, something went wrong in installation?
Some help would be really nice.
Note: Running MSTest
I followed the quickstart instructions exactly, trying to mock DateTime.Now from a simple Console application (based on .NET 4.6.1), but the actual mocking just does not take place, I always get the real date from DateTime.Now without getting any errors (that might give a hint that some critical part is missing).
Am I missing something something important?
The text was updated successfully, but these errors were encountered: