Tests: Use DateTime.UtcNow for test cases

DateTime.UtcNow is considerably faster than DateTime.Now, and since this
value isn't used for actual game purposes, we can take advantage of it.
This commit is contained in:
Tsunamical 2017-02-01 10:18:09 -05:00
parent 115a8da8f2
commit 2bfdb72e1b

View File

@ -52,7 +52,7 @@ public void MetDateSetterTest()
Assert.AreEqual(0, pk.MetYear, "Met_Year was not zeroed when MetDate is set to null");
// Ensure setting to a date sets the components
var now = DateTime.Now;
var now = DateTime.UtcNow;
// -- Set to something else first
pk.MetDay = 12;
pk.MetMonth = 12;
@ -108,7 +108,7 @@ public void EggMetDateSetterTest()
Assert.AreEqual(0, pk.EggMetYear, "Egg_Year was not zeroed when EggMetDate is set to null");
// Ensure setting to a date sets the components
var now = DateTime.Now;
var now = DateTime.UtcNow;
// -- Set to something else first
pk.EggMetDay = 12;
pk.EggMetMonth = 12;