@@ -80,7 +80,9 @@ public async Task BadRequest()
80
80
( ) => client . SubscribeToTopicAsync ( new List < string > { "abc123" } , "test-topic" ) ) ;
81
81
82
82
Assert . Equal ( ErrorCode . InvalidArgument , exception . ErrorCode ) ;
83
- Assert . Equal ( "Unexpected HTTP response with status: 400 (BadRequest)\n BadRequest" , exception . Message ) ;
83
+ Assert . Equal (
84
+ $ "Unexpected HTTP response with status: 400 (BadRequest){ Environment . NewLine } BadRequest",
85
+ exception . Message ) ;
84
86
Assert . Null ( exception . MessagingErrorCode ) ;
85
87
Assert . NotNull ( exception . HttpResponse ) ;
86
88
Assert . Null ( exception . InnerException ) ;
@@ -102,7 +104,9 @@ public async Task Unauthorized()
102
104
( ) => client . SubscribeToTopicAsync ( new List < string > { "abc123" } , "test-topic" ) ) ;
103
105
104
106
Assert . Equal ( ErrorCode . Unauthenticated , exception . ErrorCode ) ;
105
- Assert . Equal ( "Unexpected HTTP response with status: 401 (Unauthorized)\n Unauthorized" , exception . Message ) ;
107
+ Assert . Equal (
108
+ $ "Unexpected HTTP response with status: 401 (Unauthorized){ Environment . NewLine } Unauthorized",
109
+ exception . Message ) ;
106
110
Assert . Null ( exception . MessagingErrorCode ) ;
107
111
Assert . NotNull ( exception . HttpResponse ) ;
108
112
Assert . Null ( exception . InnerException ) ;
@@ -124,7 +128,9 @@ public async Task Forbidden()
124
128
( ) => client . SubscribeToTopicAsync ( new List < string > { "abc123" } , "test-topic" ) ) ;
125
129
126
130
Assert . Equal ( ErrorCode . PermissionDenied , exception . ErrorCode ) ;
127
- Assert . Equal ( "Unexpected HTTP response with status: 403 (Forbidden)\n Forbidden" , exception . Message ) ;
131
+ Assert . Equal (
132
+ $ "Unexpected HTTP response with status: 403 (Forbidden){ Environment . NewLine } Forbidden",
133
+ exception . Message ) ;
128
134
Assert . Null ( exception . MessagingErrorCode ) ;
129
135
Assert . NotNull ( exception . HttpResponse ) ;
130
136
Assert . Null ( exception . InnerException ) ;
@@ -146,7 +152,9 @@ public async Task NotFound()
146
152
( ) => client . SubscribeToTopicAsync ( new List < string > { "abc123" } , "test-topic" ) ) ;
147
153
148
154
Assert . Equal ( ErrorCode . NotFound , exception . ErrorCode ) ;
149
- Assert . Equal ( "Unexpected HTTP response with status: 404 (NotFound)\n NotFound" , exception . Message ) ;
155
+ Assert . Equal (
156
+ $ "Unexpected HTTP response with status: 404 (NotFound){ Environment . NewLine } NotFound",
157
+ exception . Message ) ;
150
158
Assert . Null ( exception . MessagingErrorCode ) ;
151
159
Assert . NotNull ( exception . HttpResponse ) ;
152
160
Assert . Null ( exception . InnerException ) ;
@@ -168,7 +176,9 @@ public async Task ServiceUnavailable()
168
176
( ) => client . SubscribeToTopicAsync ( new List < string > { "abc123" } , "test-topic" ) ) ;
169
177
170
178
Assert . Equal ( ErrorCode . Unavailable , exception . ErrorCode ) ;
171
- Assert . Equal ( "Unexpected HTTP response with status: 503 (ServiceUnavailable)\n ServiceUnavailable" , exception . Message ) ;
179
+ Assert . Equal (
180
+ $ "Unexpected HTTP response with status: 503 (ServiceUnavailable){ Environment . NewLine } ServiceUnavailable",
181
+ exception . Message ) ;
172
182
Assert . Null ( exception . MessagingErrorCode ) ;
173
183
Assert . NotNull ( exception . HttpResponse ) ;
174
184
Assert . Null ( exception . InnerException ) ;
0 commit comments