-Tests line endings

This commit is contained in:
James Newton-King
2014-09-12 23:34:20 +12:00
parent a09c2110e8
commit 99df43eb4d
46 changed files with 434 additions and 414 deletions
@@ -360,7 +360,7 @@ keyword such as type of business.""
JObject o = JObject.Parse(json);
Assert.AreEqual(@"{
StringAssert.AreEqual(@"{
""CPU"": ""Intel"",
""Drives"": [
""DVD read/writer"",
@@ -370,7 +370,7 @@ keyword such as type of business.""
JArray list = o.Value<JArray>("Drives");
Assert.AreEqual(@"[
StringAssert.AreEqual(@"[
""DVD read/writer"",
""500 gigabyte hard drive""
]", list.ToString());
@@ -379,7 +379,7 @@ keyword such as type of business.""
Assert.AreEqual(@"""CPU"": ""Intel""", cpuProperty.ToString());
JProperty drivesProperty = o.Property("Drives");
Assert.AreEqual(@"""Drives"": [
StringAssert.AreEqual(@"""Drives"": [
""DVD read/writer"",
""500 gigabyte hard drive""
]", drivesProperty.ToString());
@@ -392,10 +392,10 @@ keyword such as type of business.""
JObject o = JObject.Parse(json);
Assert.AreEqual(@"""Establised"": new Date(
StringAssert.AreEqual(@"""Establised"": new Date(
1264118400000
)", o.Property("Establised").ToString());
Assert.AreEqual(@"new Date(
StringAssert.AreEqual(@"new Date(
1264118400000
)", o.Property("Establised").Value.ToString());
Assert.AreEqual(@"""Width"": 1.1", o.Property("Width").ToString());
@@ -406,7 +406,7 @@ keyword such as type of business.""
json = @"[null,undefined]";
JArray a = JArray.Parse(json);
Assert.AreEqual(@"[
StringAssert.AreEqual(@"[
null,
undefined
]", a.ToString());
@@ -427,7 +427,7 @@ keyword such as type of business.""
Assert.AreEqual(4, o.Properties().Count());
Assert.AreEqual(@"{
StringAssert.AreEqual(@"{
""Test1"": ""Test1Value"",
""Test2"": ""Test2Value"",
""Test3"": ""Test3Value"",
@@ -454,7 +454,7 @@ keyword such as type of business.""
);
Assert.AreEqual(5, a.Count());
Assert.AreEqual(@"[
StringAssert.AreEqual(@"[
{
""Test1"": ""Test1Value"",
""Test2"": ""Test2Value"",
@@ -531,7 +531,7 @@ keyword such as type of business.""
// ]
// }
Assert.AreEqual(@"{
StringAssert.AreEqual(@"{
""Title"": ""How to use FromObject - Super effective!"",
""Description"": null,
""Link"": null,
@@ -758,7 +758,7 @@ keyword such as type of business.""
string json = sw.ToString();
Assert.AreEqual(@"{
StringAssert.AreEqual(@"{
""Test1"": new Date(
971586305000
),
@@ -995,7 +995,7 @@ keyword such as type of business.""
UriGuidTimeSpanTestClass c1 = new UriGuidTimeSpanTestClass();
JObject o = JObject.FromObject(c1);
Assert.AreEqual(@"{
StringAssert.AreEqual(@"{
""Guid"": ""00000000-0000-0000-0000-000000000000"",
""NullableGuid"": null,
""TimeSpan"": ""00:00:00"",
@@ -1024,7 +1024,7 @@ keyword such as type of business.""
};
JObject o = JObject.FromObject(c1);
Assert.AreEqual(@"{
StringAssert.AreEqual(@"{
""Guid"": ""1924129c-f7e0-40f3-9607-9939c531395a"",
""NullableGuid"": ""9e9f3adf-e017-4f72-91e0-617ebe85967d"",
""TimeSpan"": ""1.00:00:00"",