Fix tests on environments with different line endings (#1831)
This commit is contained in:
@@ -231,7 +231,7 @@ namespace Newtonsoft.Json.Tests.Converters
|
||||
};
|
||||
|
||||
string json = JsonConvert.SerializeObject(c, Formatting.Indented, new StringEnumConverter());
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""Enum"": "",third""
|
||||
}", json);
|
||||
|
||||
@@ -248,7 +248,7 @@ namespace Newtonsoft.Json.Tests.Converters
|
||||
};
|
||||
|
||||
string json = JsonConvert.SerializeObject(c, Formatting.Indented, new StringEnumConverter());
|
||||
Assert.AreEqual(@"{
|
||||
StringAssert.AreEqual(@"{
|
||||
""Enum"": "",""
|
||||
}", json);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user