Skip to content

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

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();
  }

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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