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

MSTEST0003: Add code fix #3493

Merged
merged 23 commits into from
Aug 9, 2024
Merged

MSTEST0003: Add code fix #3493

merged 23 commits into from
Aug 9, 2024

Conversation

engyebrahim
Copy link
Member

fix: #3396

# Conflicts:
#	src/Analyzers/MSTest.Analyzers.CodeFixes/CodeFixResources.Designer.cs
#	src/Analyzers/MSTest.Analyzers.CodeFixes/CodeFixResources.resx
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.cs.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.de.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.es.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.fr.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.it.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.ja.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.ko.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.pl.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.pt-BR.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.ru.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.tr.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.zh-Hans.xlf
#	src/Analyzers/MSTest.Analyzers.CodeFixes/xlf/CodeFixResources.zh-Hant.xlf
Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

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

The code fix looks fine. As you do need the semantic model for some part of the fixes, I think you could drastically symplify the code by reusing some part of FixtureMethodFixer.cs

Evangelink
Evangelink previously approved these changes Aug 9, 2024
@Evangelink Evangelink enabled auto-merge (squash) August 9, 2024 15:36
@Evangelink Evangelink merged commit aeb6cb3 into main Aug 9, 2024
6 checks passed
@Evangelink Evangelink deleted the Enji/mstest0003-codefix branch August 9, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSTEST0003: Add code fix
2 participants