-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Refactor Analyzer tests. #12822
base: main
Are you sure you want to change the base?
Refactor Analyzer tests. #12822
Conversation
....Analyzers.CSharp/tests/UnitTests/Analyzers/AvoidPassingTaskWithoutCancellationTokenTests.cs
Outdated
Show resolved
Hide resolved
@@ -34,4 +34,22 @@ | |||
</None> | |||
</ItemGroup> | |||
|
|||
<ItemGroup> | |||
<Compile Remove="TestData\AvoidPassingTaskWithoutCancellationToken\AnalyzerTestCode.cs" /> |
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.
How about calling this directory Data
instead of TestData
?
699ded6
to
fb2433a
Compare
using Microsoft.CodeAnalysis.CSharp.Testing; | ||
using Microsoft.CodeAnalysis.Testing; | ||
|
||
namespace System.Windows.Forms.Analyzers.Test; |
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.
@KlausLoeffelmann - please unify namespace names
namespace System.Windows.Forms.Analyzers.Test; | |
namespace System.Windows.Forms.Analyzers.Tests; |
ea74bd4
to
e47aa99
Compare
// completion list within the designer repo because of a C# editor feature that always | ||
// shows symbols defined in source, regardless of EditorBrowsableState. | ||
|
||
[EditorBrowsable(EditorBrowsableState.Never)] |
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.
This is not relevant in the runtime
7917c27
to
7bec660
Compare
Since we're expecting more Analyzers in the WinForms area coming also as community contribution, it makes sense to simplify and standardize the tests we have for Analyzers and CodeFixes.
This PR does the first step in that direction by doing a first refactoring pass of the Analyzer/CodeFixes tests.
Microsoft Reviewers: Open in CodeFlow