socolin / socolin.testutils Goto Github PK
View Code? Open in Web Editor NEWA collection of tools to simplify tests in C#
A collection of tools to simplify tests in C#
Hi!
I'm having an issue with json string with large numbers. It seems to be an issue when converting to values to int32 for comparison.
Would be possible to add support for int64 values?
Error:
Value was either too large or too small for an Int32.
StackTrace:
at System.Convert.ThrowInt32OverflowException() at System.Convert.ToInt32(Int64 value) at System.Int64.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token) at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable value) at Newtonsoft.Json.Linq.Extensions.Value[U](IEnumerable value) at Socolin.TestUtils.JsonComparer.Comparers.JsonValueComparer.Compare(JValue expected, JValue actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.Comparers.JsonObjectComparer.Compare(JObject expected, JObject actual, IJsonComparer jsonComparer, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.Comparers.JsonArrayComparer.Compare(JArray expected, JArray actual, IJsonComparer jsonComparer, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.Comparers.JsonObjectComparer.Compare(JObject expected, JObject actual, IJsonComparer jsonComparer, String path, JsonComparisonOptions options)+MoveNext() at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, String path, JsonComparisonOptions options)+MoveNext() at System.Collections.Generic.List..ctor(IEnumerable collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable source) at Socolin.TestUtils.JsonComparer.JsonComparer.Compare(JToken expected, JToken actual, JsonComparisonOptions options)
Test Json:
{ "intValue": 5362689768 }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.