Replace "\r\n" by "\n" in unit tests

This commit is contained in:
abcdefg30
2018-05-20 20:19:00 +02:00
committed by abcdefg30
parent ba9d1c3182
commit e83f5a9d59

View File

@@ -250,7 +250,7 @@ Parent: # comment without value
# Indented comment node
First: value containing a \# character
Second: value # node with inline comment
";
".Replace("\r\n", "\n");
var result = MiniYaml.FromString(yaml, discardCommentsAndWhitespace: false).WriteToString();
Assert.AreEqual(yaml, result);
@@ -269,7 +269,7 @@ Parent: # comment without value
var strippedYaml = @"Parent:
First: value containing a \# character
Second: value";
Second: value".Replace("\r\n", "\n");
var result = MiniYaml.FromString(yaml).WriteToString();
Assert.AreEqual(strippedYaml, result);