-
Notifications
You must be signed in to change notification settings - Fork 144
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
SCAN4NET-222 Refactor RoslynAnalyzerProvider FetchAnalyzerPlugins #2303
SCAN4NET-222 Refactor RoslynAnalyzerProvider FetchAnalyzerPlugins #2303
Conversation
d74eb10
to
eb901a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Polishing
src/SonarScanner.MSBuild.PreProcessor/Roslyn/RoslynAnalyzerProvider.cs
Outdated
Show resolved
Hide resolved
Tests/SonarScanner.MSBuild.PreProcessor.Test/Roslyn/PluginTests.cs
Outdated
Show resolved
Hide resolved
Tests/SonarScanner.MSBuild.PreProcessor.Test/Roslyn/PluginTests.cs
Outdated
Show resolved
Hide resolved
5e1962f
to
d09d656
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
act = () => new Plugin("key", "version", "\r\n "); | ||
act.Should().ThrowExactly<ArgumentNullException>().And.ParamName.Should().Be("staticResourceName"); | ||
var plugin = new Plugin(); | ||
plugin.AddProperty("pluginKey", "someKey"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate scaffolding from assertions to follow our usual test shape. Write 4x AddProperty
and then 3x Should()
The last AddProperty
should be the ("someOtherProperty", "someOtherValue")
as before, to prove that it's a NO-OP
eb901a0
to
81d2a21
Compare
5fb0eda
to
1e11364
Compare
1e11364
to
f4efaca
Compare
Quality Gate passedIssues Measures |
SCAN4NET-222
Part of SCAN4NET-171
This PR is based on top of #2300