@@ -77,11 +77,13 @@ public void WriteStringWithSpecialCharactersAsYamlWorks(string input, string exp
77
77
}
78
78
79
79
[ Theory ]
80
- [ InlineData ( "multiline\r \n string" , "test: |\n multiline\n string" ) ]
81
- [ InlineData ( "ends with\r \n line break\r \n " , "test: |+\n ends with\n line break" ) ]
82
- [ InlineData ( " starts with\n spaces" , "test: |2\n starts with\n spaces" ) ]
83
- [ InlineData ( " starts with\n spaces, and ends with line break\n " , "test: |+2\n starts with\n spaces, and ends with line break" ) ]
84
- [ InlineData ( "contains\n \n \n empty lines" , "test: |\n contains\n \n \n empty lines" ) ]
80
+ [ InlineData ( "multiline\r \n string" , "test: |-\n multiline\n string" ) ]
81
+ [ InlineData ( "ends with\r \n line break\r \n " , "test: |\n ends with\n line break" ) ]
82
+ [ InlineData ( "ends with\r \n 2 line breaks\r \n \r \n " , "test: |+\n ends with\n 2 line breaks\n " ) ]
83
+ [ InlineData ( "ends with\r \n 3 line breaks\r \n \r \n \r \n " , "test: |+\n ends with\n 3 line breaks\n \n " ) ]
84
+ [ InlineData ( " starts with\n spaces" , "test: |-2\n starts with\n spaces" ) ]
85
+ [ InlineData ( " starts with\n spaces, and ends with line break\n " , "test: |2\n starts with\n spaces, and ends with line break" ) ]
86
+ [ InlineData ( "contains\n \n \n empty lines" , "test: |-\n contains\n \n \n empty lines" ) ]
85
87
[ InlineData ( "no line breaks fallback " , "test: 'no line breaks fallback '" ) ]
86
88
public void WriteStringWithNewlineCharactersInObjectAsYamlWorks ( string input , string expected )
87
89
{
@@ -103,11 +105,13 @@ public void WriteStringWithNewlineCharactersInObjectAsYamlWorks(string input, st
103
105
}
104
106
105
107
[ Theory ]
106
- [ InlineData ( "multiline\r \n string" , "- |\n multiline\n string" ) ]
107
- [ InlineData ( "ends with\r \n line break\r \n " , "- |+\n ends with\n line break" ) ]
108
- [ InlineData ( " starts with\n spaces" , "- |2\n starts with\n spaces" ) ]
109
- [ InlineData ( " starts with\n spaces, and ends with line break\n " , "- |+2\n starts with\n spaces, and ends with line break" ) ]
110
- [ InlineData ( "contains\n \n \n empty lines" , "- |\n contains\n \n \n empty lines" ) ]
108
+ [ InlineData ( "multiline\r \n string" , "- |-\n multiline\n string" ) ]
109
+ [ InlineData ( "ends with\r \n line break\r \n " , "- |\n ends with\n line break" ) ]
110
+ [ InlineData ( "ends with\r \n 2 line breaks\r \n \r \n " , "- |+\n ends with\n 2 line breaks\n " ) ]
111
+ [ InlineData ( "ends with\r \n 3 line breaks\r \n \r \n \r \n " , "- |+\n ends with\n 3 line breaks\n \n " ) ]
112
+ [ InlineData ( " starts with\n spaces" , "- |-2\n starts with\n spaces" ) ]
113
+ [ InlineData ( " starts with\n spaces, and ends with line break\n " , "- |2\n starts with\n spaces, and ends with line break" ) ]
114
+ [ InlineData ( "contains\n \n \n empty lines" , "- |-\n contains\n \n \n empty lines" ) ]
111
115
[ InlineData ( "no line breaks fallback " , "- 'no line breaks fallback '" ) ]
112
116
public void WriteStringWithNewlineCharactersInArrayAsYamlWorks ( string input , string expected )
113
117
{
0 commit comments