You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SignalR/clients/csharp/Client/test/UnitTests/ServerSentEventsParserTests.cs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,14 +43,14 @@ public void ParseSSEMessageSuccessCases(string encodedMessage, string expectedMe
43
43
}
44
44
45
45
[Theory]
46
-
[InlineData("data: T\n","Unexpected '\n' in message. A '\n' character can only be used as part of the newline sequence '\r\n'")]
46
+
[InlineData("data: T\n","Unexpected '\\n' in message. A '\\n' character can only be used as part of the newline sequence '\\r\\n'")]
47
47
[InlineData("data: T\r\ndata: Hello, World\r\r\n\n","There was an error in the frame format")]
48
-
[InlineData("data: T\r\ndata: Hello, World\n\n","Unexpected '\n' in message. A '\n' character can only be used as part of the newline sequence '\r\n'")]
48
+
[InlineData("data: T\r\ndata: Hello, World\n\n","Unexpected '\\n' in message. A '\\n' character can only be used as part of the newline sequence '\\r\\n'")]
49
49
[InlineData("data: T\r\nfoo: Hello, World\r\n\r\n","Expected the message prefix 'data: '")]
50
50
[InlineData("foo: T\r\ndata: Hello, World\r\n\r\n","Expected the message prefix 'data: '")]
51
51
[InlineData("food: T\r\ndata: Hello, World\r\n\r\n","Expected the message prefix 'data: '")]
52
52
[InlineData("data: T\r\ndata: Hello, World\r\n\n","There was an error in the frame format")]
53
-
[InlineData("data: T\r\ndata: Hello\n, World\r\n\r\n","Unexpected '\n' in message. A '\n' character can only be used as part of the newline sequence '\r\n'")]
53
+
[InlineData("data: T\r\ndata: Hello\n, World\r\n\r\n","Unexpected '\\n' in message. A '\\n' character can only be used as part of the newline sequence '\\r\\n'")]
54
54
[InlineData("data: Hello, World\r\n\r\\","Expected a \\r\\n frame ending")]
55
55
[InlineData("data: Major\r\ndata: Key\rndata: Alert\r\n\r\\","Expected a \\r\\n frame ending")]
56
56
[InlineData("data: Major\r\ndata: Key\r\ndata: Alert\r\n\r\\","Expected a \\r\\n frame ending")]
@@ -138,14 +138,14 @@ public async Task ParseMessageAcrossMultipleReadsSuccess(string[] messageParts,
138
138
}
139
139
140
140
[Theory]
141
-
[InlineData("data: T","\n","Unexpected '\n' in message. A '\n' character can only be used as part of the newline sequence '\r\n'")]
141
+
[InlineData("data: T","\n","Unexpected '\\n' in message. A '\\n' character can only be used as part of the newline sequence '\\r\\n'")]
142
142
[InlineData("data: T\r\n","data: Hello, World\r\r\n\n","There was an error in the frame format")]
143
-
[InlineData("data: T\r\n","data: Hello, World\n\n","Unexpected '\n' in message. A '\n' character can only be used as part of the newline sequence '\r\n'")]
143
+
[InlineData("data: T\r\n","data: Hello, World\n\n","Unexpected '\\n' in message. A '\\n' character can only be used as part of the newline sequence '\\r\\n'")]
144
144
[InlineData("data: T\r\nf","oo: Hello, World\r\n\r\n","Expected the message prefix 'data: '")]
145
145
[InlineData("foo",": T\r\ndata: Hello, World\r\n\r\n","Expected the message prefix 'data: '")]
146
146
[InlineData("food:"," T\r\ndata: Hello, World\r\n\r\n","Expected the message prefix 'data: '")]
147
147
[InlineData("data: T\r\ndata: Hello, W","orld\r\n\n","There was an error in the frame format")]
148
-
[InlineData("data: T\r\nda","ta: Hello\n, World\r\n\r\n","Unexpected '\n' in message. A '\n' character can only be used as part of the newline sequence '\r\n'")]
148
+
[InlineData("data: T\r\nda","ta: Hello\n, World\r\n\r\n","Unexpected '\\n' in message. A '\\n' character can only be used as part of the newline sequence '\\r\\n'")]
149
149
[InlineData("data: ","T\r\ndata: Major\r\ndata: Key\r\ndata: Alert\r\n\r\\","Expected a \\r\\n frame ending")]
150
150
[InlineData("data: B\r\ndata: SGVs","bG8sIFdvcmxk\r\n\n\n","There was an error in the frame format")]
0 commit comments