-
Notifications
You must be signed in to change notification settings - Fork 264
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
[DataRow]: Original nested types are lost when nested deeper than one level #2390
Comments
I have now pushed my failing tests so you guys can just open the solution (LsMsgPack.sln) and run them. Note that it is the LsMsgPackNetStandardUnitTests.csproj that has the MsTest version. |
Haha, no Json does not preserve types while in transit, it is "stringly" typed. |
Long story short, many weird decisions were made in MSTest 🤣 To give more context, original devs decided to serialize data to push it up to the UI so that when you run a single test from let's say VS you provide "all" the required info to run this test. This is a design as another but I personally don't like it and would have prefered to push only some "index" or identified of the data so that I can then resolve it locally. This is having a small local overhead of querying the data multiple times but outside access to big systems this should be neglictible. Sadly because of all the open points in MSTest, we cannot easily update that decision.
Yes this is a consideration. My ideal would be to avoid yet another deps as it could be causing issues to users. Let's say I want to test my main app with a given version of msg pack, if I force some version it could clash with the user one. We have seen that many times with VSTest forcing newtonsoft and nuget packages. |
You could just copy the source and change the namespace. Currently only 17 files in netStandard2.1. |
Happy to hear that! I'll discuss with the team, this could be an easy upgrade/fix that would give us time to think how to change more fundamentaly the process. Thank you for the offer @mlsomers <3 |
Closing in favor of the overall ticket #1462 |
Describe the bug
Using a nested type like this in a DataRow:
All the Bytes and Shorts become Int32's
Steps To Reproduce
Expected behavior
I expect bytes, shorts and longs to stay bytes, shorts and longs and not upgrade/downgrade to Int32.
Actual behavior
Anything smaller than Int32 gets upgraded, for larger types it depends on the value if they get downgraded or not.
Additional context
Ran into this bug when migrating my MsgPack project to NetStandard2.1 and migrating this test to MSTest instead of NUnit (hoping to get a smoother integrated experience in Visual Studio). The NUnit version worked fine by the way.
The text was updated successfully, but these errors were encountered: