Replies: 1 comment 9 replies
-
It depends. If it requires FA to take additional dependencies. But maybe it would be a better fit for https://github.com/fluentassertions/fluentassertions.aspnetcore.mvc cc @kevinkuszyk |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Fluent Assertions for the integration / E2E tests of my web API as well. So I have a couple of assertions which look like
response.StatusCode.Should().Be(HttpStatusCode.Ok)
.What do you think about some assertions for
StatusCode
onHttpResponseMessage
like:BeSuccessStatusCode()
BeFailedStatusCode()
BeStatusCode(HttpStatusCode expectedStatusCode)
If you like the idea, I'd love to provide a PR.
Beta Was this translation helpful? Give feedback.
All reactions