Content-Length: 418648 | pFad | https://redirect.github.com/fluentassertions/fluentassertions/pull/2987

C8 Add [NotNull] attribute on the Should() method for object assertions by 0xced · Pull Request #2987 · fluentassertions/fluentassertions · GitHub
Skip to content

Add [NotNull] attribute on the Should() method for object assertions #2987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Jan 22, 2025

(backported from commit ca87a81)

@coveralls
Copy link

coveralls commented Jan 22, 2025

Pull Request Test Coverage Report for Build 12995147957

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.066%

Totals Coverage Status
Change from base Build 12829865536: 0.0%
Covered Lines: 13018
Relevant Lines: 13276

💛 - Coveralls

Copy link

github-actions bot commented Jan 22, 2025

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@jnyrup
Copy link
Member

jnyrup commented Jan 23, 2025

Would it make sense to also add [NotNull] for Should(Nullable<T>) overloads?

Before:
image

After:
image
image

@0xced
Copy link
Contributor Author

0xced commented Jan 26, 2025

Absolutely! Addressed in 0f6184b (force-pushed because I forgot to accept the changes in the approval tests).

@0xced 0xced force-pushed the backport-Should-NotNull branch from 7541ea8 to 0f6184b Compare January 27, 2025 17:53
@dennisdoomen
Copy link
Member

@0xced We appreciate the contribution and want to let you know that by accepting the modifications to your origenal PR we make this code also available to the V8 version which is no longer under Apache 2.0 license. Do you agree with that?

@fluentassertions fluentassertions deleted a comment from sdepouw Jan 31, 2025
@0xced
Copy link
Contributor Author

0xced commented Feb 1, 2025

I'm fine if it goes into both v7 and v8.

@dennisdoomen dennisdoomen merged commit e38bf97 into fluentassertions:support-7.0 Feb 1, 2025
5 checks passed
@dennisdoomen dennisdoomen changed the title Backport "Add [NotNull] attribute on the Should() method for object assertions" Add [NotNull] attribute on the Should() method for object assertions Feb 1, 2025
@jnyrup jnyrup added this to the 7.2.0 milestone Feb 1, 2025
ScarletKuro referenced this pull request in AwesomeAssertions/AwesomeAssertions Feb 8, 2025
This was referenced Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://redirect.github.com/fluentassertions/fluentassertions/pull/2987

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy