Skip to content

Enable/disable xunit2020 rule #10586

@f-alizada

Description

@f-alizada

Context

After the #10577 is merged the new warnings of xunit analyzers were disabled. The goal is to check each warning and enable or leave as it is with explanation

The new version of xunit that is used right now in the build provides convenient way of reporting the fail.
https://xunit.net/xunit.analyzers/rules/xUnit2020

Goal

The goal is to enable the warning if
Assert.True(false) or Assert.False(true) is met.
And change the usage to Assert.Fail()

The pros of using this:

  • More readble test's code
  • Unified style in tests

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions