davidhcoe commented on code in PR #2587:
URL: https://github.com/apache/arrow-adbc/pull/2587#discussion_r1986225525
##########
csharp/test/Apache.Arrow.Adbc.Tests/ClientTests.cs:
##########
@@ -304,5 +331,49 @@ static void AssertTypeAndValue(
Assert.True(ctv.ExpectedValue == null,
Utils.FormatMessage($"The value for {ctv.Name} is null and but it's expected
value is not null for query [{query}]", environmentName));
}
}
+
+ static bool AreExpandoObjectsEqual(ExpandoObject? obj1, ExpandoObject?
obj2)
+ {
+ if (obj1 == null && obj2 == null)
+ {
+ return true;
+ }
+ else if (obj1 != null && obj2 == null)
+ {
+ return false;
+ }
+ else if (obj1 == null && obj2 != null)
+ {
+ return false;
+ }
+
+ var dict1 = (IDictionary<string, object?>)obj1!;
+ var dict2 = (IDictionary<string, object?>)obj2!;
+
+ if (dict1.Count != dict2.Count)
+ return false;
+
+ foreach (var key in dict1.Keys)
Review Comment:
fixed in latest push
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]