You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK Moq doesn't have any special logic for rounding floating point numbers, it just performs a regular .ToString() on the arguments. Not sure what can be done about this. Suggestions?
@pinki: This will be "fixed" in the next release of Moq (version > 4.8.3).
(The "fix" consists of using round-tripping when formatting floating point values for inclusion in diagnostic messages. The Visual Studio IDE does the same for floats in e.g. the Watch window, so it seemed like a reasonable change to do the same in Moq.)
I had this exception:
I was wondering why the validation didn't pass.
It turned out, that the first
1
was1.000[...]2
.It took me a long time to find that out.
If the exact value was inside the exception message, it would have saved me much time.
The text was updated successfully, but these errors were encountered: