-Tests
This commit is contained in:
@@ -219,7 +219,7 @@ namespace Newtonsoft.Json.Tests
|
|||||||
var s = new Session
|
var s = new Session
|
||||||
{
|
{
|
||||||
Name = "Serialize All The Things",
|
Name = "Serialize All The Things",
|
||||||
Date = new DateTime(2014, 6, 4)
|
Date = new DateTime(2014, 6, 4, 0, 0, 0, DateTimeKind.Utc)
|
||||||
};
|
};
|
||||||
|
|
||||||
string j = JsonConvert.SerializeObject(s, new JsonSerializerSettings
|
string j = JsonConvert.SerializeObject(s, new JsonSerializerSettings
|
||||||
@@ -235,7 +235,7 @@ namespace Newtonsoft.Json.Tests
|
|||||||
StringAssert.AreEqual(@"{
|
StringAssert.AreEqual(@"{
|
||||||
""Name"": ""Serialize All The Things"",
|
""Name"": ""Serialize All The Things"",
|
||||||
""Date"": new Date(
|
""Date"": new Date(
|
||||||
1401796800000
|
1401840000000
|
||||||
)
|
)
|
||||||
}", j);
|
}", j);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user