-Tests
This commit is contained in:
@@ -73,7 +73,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
|||||||
// }
|
// }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
Assert.AreEqual(@"{
|
StringAssert.AreEqual(@"{
|
||||||
""FirstName"": ""John"",
|
""FirstName"": ""John"",
|
||||||
""LastName"": ""Smith"",
|
""LastName"": ""Smith"",
|
||||||
""Enabled"": true,
|
""Enabled"": true,
|
||||||
@@ -81,7 +81,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
|||||||
""User"",
|
""User"",
|
||||||
""Admin""
|
""Admin""
|
||||||
]
|
]
|
||||||
}", json.ToString());
|
}", json);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -87,7 +87,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Linq
|
|||||||
// Elbow Grease
|
// Elbow Grease
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
Assert.AreEqual(@"{
|
StringAssert.AreEqual(@"{
|
||||||
""Name"": ""Acme Co"",
|
""Name"": ""Acme Co"",
|
||||||
""Products"": [
|
""Products"": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
|||||||
// }
|
// }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
Assert.AreEqual(@"{
|
StringAssert.AreEqual(@"{
|
||||||
""firstName"": ""Eric"",
|
""firstName"": ""Eric"",
|
||||||
""lastName"": ""Example"",
|
""lastName"": ""Example"",
|
||||||
""birthDate"": ""1980-04-20T00:00:00Z"",
|
""birthDate"": ""1980-04-20T00:00:00Z"",
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
|||||||
// ]
|
// ]
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
Assert.AreEqual(@"[
|
StringAssert.AreEqual(@"[
|
||||||
""7 December, 2009"",
|
""7 December, 2009"",
|
||||||
""1 January, 2010"",
|
""1 January, 2010"",
|
||||||
""10 February, 2010""
|
""10 February, 2010""
|
||||||
|
|||||||
Reference in New Issue
Block a user