I have to test a method that checks if the "System.DateTime.Today" corresponds to some provided date. While unit testing this method i came across this problem: How can I change the system time? It must correspond to a date between the 2nd November and 1st January but now we are in July and I need to test the method. Searching on StackOverflow (and generally on Internet) I came across a solution that uses Coredll.dll, which isn't good for me because I'm not using windows CE. There were also a solution with Kernel32.dll but it seems to not work with the SetSystemTime function. Is there a solution to my problems?
I am using Windows 8.1 64 bit system