Skip to content

Commit 9b423a8

Browse files
committed
Fix broken unit test
If the response is a bad request, we should probably not have anything in the request message.
1 parent 515acdc commit 9b423a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp.IntegrationTests/StatusCodeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void Handles_Different_Root_Element_On_Error()
5959
var response = client.Execute<Response>(request);
6060

6161
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
62-
Assert.Equal("Not found!", response.Data.Message);
62+
Assert.Null(response.Data);
6363
}
6464
}
6565

0 commit comments

Comments
 (0)