Skip to content

Don't suggest FAA0002 for xunit 3's Assert.Skip... usage #404

@deMD

Description

@deMD

Currently when using conditional tests with xUnit 3's Assert.Skip... I get the notification that I should use the Fluent Assertions alternative, however no such alternative exists.

  [Fact]
  public void TestsSomething()
  {
      Assert.SkipWhen(true, reason: "skip this when true"); // <- this should not raise an analyzer FAA0002 issue.

      // Arrange
      // ...

      // Act
      var result = true;

     // Assert
    result.Should().BeFalse();
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions