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

Use specific constraint #839

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

manfred-brands
Copy link
Member

Fixes #824
Fixes #826
Fixes #828

@mikkelbu The first commit is not directly related but was necessary to allow NUnit 4 specific names to be only tested when building against NUnit instead of making up the names in the analyzer code.

The second commit add the new analyzer and code fix.

There was a small change in the documentation tests as they were not testing for the new Style analyzers.

If you think this analyzer should be in a different category, that is fine by me.

NUnitFrameworkConstants
NUnitLegacyFrameworkConstants
NUnitV4FrameworkConstants

Main reason was for V4 as this can only be tested when compiling against V4
This is for:
Is.EqualTo(false) => Is.False
Is.EqualTo(true) => Is.True
Is.EqualTo(null) => Is.Null
Is.EqualTo(default) => Is.Default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant