-
Notifications
You must be signed in to change notification settings - Fork 722
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
Contains.Item() fails for collections in NUnit 3.8 #2386
Comments
I think this is due to my solution of #1324 |
@mikkelbu I am hoping to do a hotfix tonight or tomorrow morning. Are you investigating this issue? |
@mikkelbu I am starting to triage this issue. If you have ideas or want to work on it, let me know. |
PR is up for this. It was your change @mikkelbu, good catch, but it wasn't your fault, we didn't have any tests for this. |
Absolutely. Do not feel strange about making mistakes. It's par for the course. Look what three of us missed: nunit/nunit-console#285 😄 |
Great work guys 👍 . I was offline all last night (for once ;)), so I did not look into this, so no time wasted 😄 . |
We're still seeing this issue on 3.8.1. We updated directly from 3.6 to 3.8.1, so we've never had 3.8.0 installed. |
@AzP Are you seeing that the constraint fails (if so can you give an example)? Or that something like the following does not compile?
The problem about |
The problem we're seeing is that tests that were previously passing are now failing because Has.Member() (or even Has.Member().And.Member()) are not recognizing objects within a list. |
It seems one of the issues might be caused by using CollectionAssert.Contains(PseudoEnum[], string) where PseudoEnum has implicit comparison functions with strings. |
Hi,
just updated from NUnit 3.7.1 to 3.8.0.
Now, a test starts to fail consistently which succeeded in the past.
Repro:
Best regards,
Ralf Koban
The text was updated successfully, but these errors were encountered: