Skip to content

Conversation

maartenkools
Copy link

I've added an assertion to validate the HTTP response content is empty

@adrianiftode
Copy link
Owner

@maartenkools Thanks for this PR. I will take a look on the build issue, there is an issue with a dependency, these haven't been built for an while now.

Meanwhile, do you mind updating the docs too? There is a section that lists all assertions. Thanks

#region BeEmpty

[Fact]
public void When_asserting_response_with_no_content_it_should_succeed()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to have a test with a StringContent created with an empty string too?

@maartenkools
Copy link
Author

@maartenkools Thanks for this PR. I will take a look on the build issue, there is an issue with a dependency, these haven't been built for an while now.

Meanwhile, do you mind updating the docs too? There is a section that lists all assertions. Thanks

Thanks for taking a look at the build issue, and for the quick response! I've updated the PR.

@adrianiftode adrianiftode merged commit 84d6b2a into adrianiftode:master Apr 17, 2024
@maartenkools maartenkools deleted the feature/empty-response-assertion branch April 17, 2024 20:20
@adrianiftode
Copy link
Owner

Released https://www.nuget.org/packages/FluentAssertions.Web/1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants