-
Notifications
You must be signed in to change notification settings - Fork 732
Fluent Assertions (v7) & xunit.v3 framework detection #2935
Copy link
Copy link
Closed
Labels
Description
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
- Create new test project
- Install Fluent Assertions
- 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
Reactions are currently unavailable