mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
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:
parent
115a8da8f2
commit
2bfdb72e1b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user