Skip to content

Enable xunit2020 rule with severity=warning#10587

Merged
f-alizada merged 1 commit intodotnet:mainfrom
f-alizada:dev/f-alizada/enable-xUnit2020-rule
Sep 2, 2024
Merged

Enable xunit2020 rule with severity=warning#10587
f-alizada merged 1 commit intodotnet:mainfrom
f-alizada:dev/f-alizada/enable-xUnit2020-rule

Conversation

@f-alizada
Copy link
Contributor

Fixes #10586

Context

During the retargeting work from net8 to net9 new tools brought new rules and warnings to the build. Not to introduce a lot of changes in one PR the rules were disabled.
This PR enables one of them xunit2020 https://xunit.net/xunit.analyzers/rules/xUnit2020 and addresses the issues

Changes Made

Find -> Replace

  • Assert.True(false, -> Assert.Fail(
  • Assert.True(false) -> Assert.Fail()

Testing

Existing tests should be green

Notes

@f-alizada f-alizada requested a review from a team August 31, 2024 21:54
@f-alizada f-alizada requested a review from a team September 2, 2024 07:40
Copy link
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Thanks!

@f-alizada f-alizada merged commit c93cb12 into dotnet:main Sep 2, 2024
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.

Enable/disable xunit2020 rule

3 participants