-
Notifications
You must be signed in to change notification settings - Fork 731
Description
Background and motivation
I just read What’s New in xUnit.net v3 and figured this is relevant to FluentAssertions.
A new
FailureCauseenum has been added, and is returned insideITestFailedmessages. It gives a best guess as to the cause of the test failure: assertion failure, exception thrown, or test timed out.This best guess is based on two contracts added to v3 which can be implemented by third party assertion libraries. Throwing an exception which implements an interface named
IAssertionException(in any namespace) will be reported as an assertion failure; similarly, throwing an exception which implements an interface namedITestTimeoutException(in any namespace) will be reported as a timed-out test.
This looks like an easy task to implement for FluentAssertions.
Alternative Concerns
No response
Are you willing help with a pull-request?
Yes, please assign this issue to me.