-
Notifications
You must be signed in to change notification settings - Fork 256
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
After upgrading to 2.2.3 to 2.2.4 getting a argument exception on datarow unit test #839
Comments
I am also encountering this problem. I also have problems with tests that use a Type or a char in the DataRow attribute (char cannot be converted to string, System.Type cannot be serialized) |
Did you also update Microsoft.NET.Test.Sdk in project? I do not see any changes related to DataRow logic in 2.2.4. |
Just created a new project; updated the nuget packages
this is this unit test:
same output here is the project I used: TestProject1.zip visual studio version info: Installed Version: Enterprise Architecture Diagrams and Analysis Tools 00435-60000-00000-AA497 Visual C++ 2019 00435-60000-00000-AA497 ASP.NET and Web Tools 2019 16.10.525.31942 ASP.NET Web Frameworks and Tools 2019 16.10.525.31942 Azure App Service Tools v3.0.0 16.10.525.31942 Azure Functions and Web Jobs Tools 16.10.525.31942 C# Tools 3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb Common Azure Tools 1.10 GitHub.VisualStudio 2.11.106.19330 IntelliCode Extension 1.0 Microsoft Azure Tools 2.9 Microsoft Continuous Delivery Tools for Visual Studio 0.4 Microsoft JVM Debugger 1.0 Microsoft Library Manager 2.1.113+g422d40002e.RR Microsoft MI-Based Debugger 1.0 Microsoft Visual C++ Wizards 1.0 Microsoft Visual Studio Tools for Containers 1.2 Microsoft Visual Studio VC Package 1.0 NuGet Package Manager 5.10.0 ProjectServicesPackage Extension 1.0 Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725 Snapshot Debugging Extension 1.0 SQL Server Data Tools 16.0.62105.04180 TypeScript Tools 16.0.30429.2002 Visual Basic Tools 3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb Visual F# Tools 16.10.0-beta.21262.7+1b23bbeda88ea3cb9be9af777f4c99fa8663df81 Visual Studio Code Debug Adapter Host Package 1.0 Visual Studio Container Tools Extensions 1.0 Visual Studio Tools for Containers 1.0 Visual Studio Tools for Kubernetes 1.0 |
Something has clearly broken with how DataRow's are serialized. With the update to 2.2.4 (from 2.2.3), I get the error:
The test that breaks things has DataRow's that look like:
It can't handle String arrays (along with all sorts of other things it seems). |
Thank you for reporting this, it's a known issue - we're working on it. It's tracked here. |
Steps to reproduce
Create this unit test
results in :
Test method Pandora.Reasoning.Rules.Tests.Extensions.Test.Doubles threw exception:
System.ArgumentException: Object of type 'System.Decimal' cannot be converted to type 'System.Double'.
Expected behavior
Unit test completes successfully
Actual behavior
unit test fails in Test method Pandora.Reasoning.Rules.Tests.Extensions.Test.Doubles threw exception:
System.ArgumentException: Object of type 'System.Decimal' cannot be converted to type 'System.Double'.
The text was updated successfully, but these errors were encountered: