Skip to content

Fluent Assertions (v7) & xunit.v3 framework detection #2935

@jon-armen

Description

@jon-armen

Description

Currently running Fluent Assertions v7 and XUnit V3. Expect XunitException to be thrown, however receiving generic AssertionFailedException. Appears that Fluent Assertions is unable to detect the framework.

Reproduction Steps

  1. Create new test project
  2. Install Fluent Assertions
  3. Install XUnit.v3

[Fact]
public void Test()
{
Action test = () => true.Should().BeFalse();

test.Should().ThrowExactly<XunitException>();

}

Expected behavior

Expect XUnitException

Actual behavior

Recieve AssertionFailedException

Regression?

No, occurs after updating to XUnit v3

Known Workarounds

No response

Configuration

No response

Other information

No response

Are you willing to help with a pull-request?

No

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions