-
Notifications
You must be signed in to change notification settings - Fork 29
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
JToken.Should().BeEquivalentTo(differentJToken) returns exception #7
Comments
Was that |
Hi, Decided to try out your library, and hit the same issue reported by @jakubozga .
Stack Trace:
Could it be that your |
Yes, there was a problem in 4.19.3. See https://github.com/fluentassertions/fluentassertions/releases/tag/4.19.3 |
Using versions: Issue seems to be away with pre-release 5.0.0-beta0002 and 5.0.0-beta0003. |
Hmm, I found the fix. Unfortunately, I can't resolve this issue on 4.x. You'll have to wait for 5.0. |
@dennisdoomen Guess this could be closed? (V6 is released) |
Not sure. Completely lost track of this one. |
Hello,
Lately I found that if you have 2 different JTokens and call
Should().BeEquivalentTo(...)
you will get:"System.FormatException: Input string was not in a correct format." instead of error message.
My guess is that this exception is caused because code is trying to call
string.Format(JToken)
. JToken contains characters like{
and}
which should be escaped to{{
and}}
The text was updated successfully, but these errors were encountered: