Skip to content
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

Issue635 partial classes #658

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

manfred-brands
Copy link
Member

@manfred-brands manfred-brands commented Nov 29, 2023

Fixes #635
Fixes #659

This removed the need to check all methods for classes that only have read-only constants.
Do not check calls across compilation boundaries.
Take into account that get only properties and readonly fields can be assigned to in a constructor.
This to cope with cases where a field and an explicit property have the same name.
@manfred-brands
Copy link
Member Author

@mikkelbu I also added a commit to fix #659.

Copy link
Member

@mikkelbu mikkelbu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for all the work @manfred-brands

@mikkelbu mikkelbu merged commit c3729dd into nunit:master Dec 5, 2023
6 checks passed
@mikkelbu mikkelbu added this to the Release 4.0 milestone Dec 5, 2023
@manfred-brands manfred-brands deleted the issue635-PartialClasses branch December 31, 2023 14:25
@alteredego
Copy link

I'm facing the same exception being thrown. Any chance this fix could be rolled out into a 3.11 release?

@mikkelbu
Copy link
Member

I'm facing the same exception being thrown. Any chance this fix could be rolled out into a 3.11 release?

@alteredego I'll will see if I can get a release out this weekend - either a 3.11 or a 4.00

@alteredego
Copy link

@mikkelbu - am I recommended to upgrade to 4.0+ and does this have a hard dependency on using NUnit 4? Thank you in advance!

@mikkelbu
Copy link
Member

mikkelbu commented Feb 5, 2024

We will not backport the fix to 3.11, but the NUnit 4.X analyzers should work with both NUnit 3 and NUnt 4.

@alteredego
Copy link

I'll give 4.0.1 a go. Many thanks!

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