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
SetupFixture should have an AttributeUsage
of Inherited = false
#4158
Comments
I can take care of it. Shall I also make this change in the v3 branch? |
x789
added a commit
to x789/nunit
that referenced
this issue
Oct 8, 2022
x789
added a commit
to x789/nunit
that referenced
this issue
Oct 8, 2022
x789
added a commit
to x789/nunit
that referenced
this issue
Oct 8, 2022
x789
added a commit
to x789/nunit
that referenced
this issue
Oct 8, 2022
This was referenced Oct 8, 2022
Thanks once again for tackling this! |
lahma
pushed a commit
to lahma/nunit
that referenced
this issue
Feb 26, 2023
lahma
pushed a commit
to lahma/nunit
that referenced
this issue
Feb 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on the conversation in #3937,
SetupFixture
isn't intended to be used in a base class, however there is nothing stopping it from being added to a base class or even an abstract base class. One source of confusion here could be that the attribute is explicitly marked withInherited = true
prop in theAttributeUsage
. It might help avoid confusion to make this explicitly false.The text was updated successfully, but these errors were encountered: