From e99d9d42e421ee1be7a241a18d00a3567d26bafa Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sun, 12 Apr 2015 17:58:04 +1200 Subject: [PATCH] -Fixed tests --- .../Documentation/Samples/Bson/SerializeToBson.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Newtonsoft.Json.Tests/Documentation/Samples/Bson/SerializeToBson.cs b/Src/Newtonsoft.Json.Tests/Documentation/Samples/Bson/SerializeToBson.cs index 0c855b38..882793b1 100644 --- a/Src/Newtonsoft.Json.Tests/Documentation/Samples/Bson/SerializeToBson.cs +++ b/Src/Newtonsoft.Json.Tests/Documentation/Samples/Bson/SerializeToBson.cs @@ -52,7 +52,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Bson Event e = new Event { Name = "Movie Premiere", - StartDate = new DateTime(2013, 1, 22, 20, 30, 0) + StartDate = new DateTime(2013, 1, 22, 20, 30, 0, DateTimeKind.Utc) }; MemoryStream ms = new MemoryStream(); @@ -68,7 +68,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Bson // MQAAAAJOYW1lAA8AAABNb3ZpZSBQcmVtaWVyZQAJU3RhcnREYXRlAMDgKWE8AQAAAA== #endregion - Assert.AreEqual("MQAAAAJOYW1lAA8AAABNb3ZpZSBQcmVtaWVyZQAJU3RhcnREYXRlAMDgKWE8AQAAAA==", data); + Assert.AreEqual("MQAAAAJOYW1lAA8AAABNb3ZpZSBQcmVtaWVyZQAJU3RhcnREYXRlAED982M8AQAAAA==", data); } } } \ No newline at end of file