-
Notifications
You must be signed in to change notification settings - Fork 758
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
InvalidOperationException thrown in string.Join running MemberData tests #987
Comments
Are you sure about that? The very top of the stack trace is your code ( |
Right, the exception is thrown from the But my issue is that this code is being called from |
Can you point to the implementation of |
Curious: Why are you implementing |
Presumably this is by design, and xunit is attempting to serialize any IEnumerable as part of the name of a theory? It might be nice if it caught exceptions from enumeration and ignored them, assuming this is part of name generation or something similarly non-fatal. That said, this doesn't seem like a bug to me.
I ported this code, and I'm wondering the same thing ;) I need to go dig up an old copy of the Silverlight library to see what it was doing here. This is a straight port of Mono's implementation, which we brought to corefx for compat with code that's using it there. |
It's probs not a bug, I was incorrect in identifying it as such. I just wanted to identify this as a limitation. I agree that catching the IOE would be nice but not essential. As a non-microsoftie I have no idea why anyone would implement JsonValue like that! |
The following throws an
InvalidOperationException
when running tests, with the stack trace attachedThis is a bug in xunit I think, as the error doesn't seem to be coming from my code - there is no mention of
string.Join
anywhere.The reason why an
InvalidOperationException
is thrown is thatJsonValue
throws this exception whenGetEnumerator
is called./cc @stephentoub FYI
The text was updated successfully, but these errors were encountered: