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

Fix missing parenthesis after applying XUnit code fixes #248

Conversation

jairbubbles
Copy link
Contributor

@jairbubbles jairbubbles commented Dec 4, 2023

After applying code fixes to transform XUnit asserts to fluent assertions I got some compilation errors. Some parenthesis were missing when the expression tested was complex.

Note: The tests were not properly testing the code source after the code fix is applied, I re-enabled it but some tests were failing so I added a '#if TO_BE_FIXED

@Meir017 Meir017 merged commit 104442f into fluentassertions:main Dec 8, 2023
6 of 7 checks passed
@Meir017
Copy link
Member

Meir017 commented Dec 8, 2023

@jairbubbles Thank you for your contribution! version 0.27.0 is released with your changes!

@jairbubbles
Copy link
Contributor Author

Thanks, for your information I stumbled on https://github.com/meziantou/Meziantou.FluentAssertionsAnalyzers which also supports NUnit test migration.

Also, one cool thing is that the code fixes are already reported on a same ID so it's easier to fix all at once:

dotnet format analyzers --diagnostics MFA003

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

Successfully merging this pull request may close these issues.

2 participants