-Tests line endings
This commit is contained in:
@@ -99,7 +99,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
Formatting.Indented,
|
||||
new JsonSerializerSettings { DefaultValueHandling = DefaultValueHandling.Include });
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""Company"": ""Acme Ltd."",
|
||||
""Amount"": 50.0,
|
||||
""Paid"": false,
|
||||
@@ -126,7 +126,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
Formatting.Indented,
|
||||
new JsonSerializerSettings { });
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""Company"": ""Acme Ltd."",
|
||||
""Amount"": 50.0,
|
||||
""Paid"": false,
|
||||
@@ -139,7 +139,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
Formatting.Indented,
|
||||
new JsonSerializerSettings { DefaultValueHandling = DefaultValueHandling.Ignore });
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""Company"": ""Acme Ltd."",
|
||||
""Amount"": 50.0
|
||||
}", ignored);
|
||||
@@ -295,7 +295,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
|
||||
string json = JsonConvert.SerializeObject(c, Formatting.Indented);
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""IntInclude"": 0,
|
||||
""IntDefault"": 0
|
||||
}", json);
|
||||
@@ -305,7 +305,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
DefaultValueHandling = DefaultValueHandling.Ignore
|
||||
});
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""IntInclude"": 0
|
||||
}", json);
|
||||
|
||||
@@ -314,7 +314,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
DefaultValueHandling = DefaultValueHandling.Include
|
||||
});
|
||||
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""IntInclude"": 0,
|
||||
""IntDefault"": 0
|
||||
}", json);
|
||||
|
||||
Reference in New Issue
Block a user