-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestCaseSource that contains Exception with InnerException - not running tests #4659
Comments
@konrad-gora thanks for the report. |
This could be related to #4584 |
@konrad-gora What is the package that implements your Can you replace your test with:
Then switch NUnit versions. |
Yes, passing test have one line name. |
Should() is from FluentAssertion. I changed the test like you suggested and it works in the same way (on both, NUnit 3 and NUnit 4). This assertion is just to have something inside. |
Thanks @konrad-gora. We can exclude this then. To see if it is related to the name, can you set the |
This seems to work:
|
@stevenaw DisplayName.GetValueString calls (indirectly) Exception.ToString() which result in a stack trace, including a \r\n:
Adding a case for This still depends on the user not passing "\r\n" as part of the exception message. |
Yeah, I tested it with providing names and tests passed. |
After updating NUnit 3 to NUnit 4 (4.1.0) my test cases with InnerException are not run. I'm using TestAdapter 4.5.0
When I downgrade NUnit to 3.14.0, both tests are passing.
The text was updated successfully, but these errors were encountered: