Skip to content

Do not negate boolean assertions #2375

Closed

Description

Enabled by default: true
Default severity: Info
Title: Do not negate boolean assertions

Flags cases like Assert.IsTrue(!condition) and Assert.IsFalse(!condition) and suggest to use the opposite assertion API.

AB#1999045

Activity

  1. added
    area/analyzers
    on Feb 19, 2024
  2. removed
    needs/triage
    on Feb 19, 2024
  3. testplatform-bot commented on Mar 18, 2024

    @testplatform-bot
    Contributor

    ✅ Successfully linked to Azure Boards work item(s):

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

Metadata

Metadata

Labels

area/analyzersstate/in-pr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions