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

Implement a codefix for AreSame analyzer #4516

Closed
Youssef1313 opened this issue Jan 4, 2025 · 1 comment · Fixed by #4584
Closed

Implement a codefix for AreSame analyzer #4516

Youssef1313 opened this issue Jan 4, 2025 · 1 comment · Fixed by #4584

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Jan 4, 2025

Analyzer implemented in #4493 doesn't have a corresponding codefix.

An implementation of a codefix should be straightforward, just replacing AreSame with AreEqual.

AB#2332313

@Youssef1313
Copy link
Member Author

The code fix may special case if both arguments are a nullable value type, and switch to two Assert.IsNotNull calls. Otherwise, use Assert.AreEqual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant