Fix tests on environments with different line endings (#1831)
This commit is contained in:
@@ -72,8 +72,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Linq
|
||||
AuthorName = "James Newton-King",
|
||||
AuthorTwitter = "JamesNK",
|
||||
PostedDate = new DateTime(2013, 1, 23, 19, 30, 0),
|
||||
Body = @"<h3>Title!</h3>
|
||||
<p>Content!</p>"
|
||||
Body = @"<h3>Title!</h3><p>Content!</p>"
|
||||
}
|
||||
};
|
||||
|
||||
@@ -102,12 +101,12 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Linq
|
||||
// "Twitter": "JamesNK"
|
||||
// },
|
||||
// "Date": "2013-01-23T19:30:00",
|
||||
// "BodyHtml": "<h3>Title!</h3>\r\n<p>Content!</p>"
|
||||
// "BodyHtml": "<h3>Title!</h3><p>Content!</p>"
|
||||
// }
|
||||
// ]
|
||||
#endregion
|
||||
|
||||
Assert.AreEqual(@"[
|
||||
StringAssert.AreEqual(@"[
|
||||
{
|
||||
""Title"": ""Json.NET is awesome!"",
|
||||
""Author"": {
|
||||
@@ -115,7 +114,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Linq
|
||||
""Twitter"": ""JamesNK""
|
||||
},
|
||||
""Date"": ""2013-01-23T19:30:00"",
|
||||
""BodyHtml"": ""<h3>Title!</h3>\r\n <p>Content!</p>""
|
||||
""BodyHtml"": ""<h3>Title!</h3><p>Content!</p>""
|
||||
}
|
||||
]", blogPostsArray.ToString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user