Fixed tests to work in Moscow, Russia UTC+3 timezone. (#2416)

This commit is contained in:
VereshchaginKonstantin
2020-11-20 17:21:00 +13:00
committed by GitHub
parent c918ca862f
commit 6795ca55f4
2 changed files with 8 additions and 8 deletions
@@ -6342,8 +6342,8 @@ Path '', line 1, position 1.");
{
IDictionary<DateTime, int> dic1 = new Dictionary<DateTime, int>
{
{ new DateTime(2000, 12, 12, 12, 12, 12, DateTimeKind.Utc), 1 },
{ new DateTime(2013, 12, 12, 12, 12, 12, DateTimeKind.Utc), 2 }
{ new DateTime(2020, 12, 12, 12, 12, 12, DateTimeKind.Utc), 1 },
{ new DateTime(2023, 12, 12, 12, 12, 12, DateTimeKind.Utc), 2 }
};
string json = JsonConvert.SerializeObject(dic1, Formatting.Indented, new JsonSerializerSettings
@@ -6361,8 +6361,8 @@ Path '', line 1, position 1.");
});
Assert.AreEqual(2, dic2.Count);
Assert.AreEqual(1, dic2[new DateTime(2000, 12, 12, 12, 12, 12, DateTimeKind.Utc)]);
Assert.AreEqual(2, dic2[new DateTime(2013, 12, 12, 12, 12, 12, DateTimeKind.Utc)]);
Assert.AreEqual(1, dic2[new DateTime(2020, 12, 12, 12, 12, 12, DateTimeKind.Utc)]);
Assert.AreEqual(2, dic2[new DateTime(2023, 12, 12, 12, 12, 12, DateTimeKind.Utc)]);
}
[Test]