Open
Description
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 = () => new DateTime();
var x = DateTime.Now;
// always outputs real date/time
System.Console.WriteLine("Time: " + x.ToString("G"));
System.Console.ReadLine();
return;
}
Am I missing something something important?
Metadata
Metadata
Assignees
Labels
No labels