diff --git a/csharp/test/Drivers/Snowflake/ValueTests.cs b/csharp/test/Drivers/Snowflake/ValueTests.cs index 3195e74479..f6fa59375a 100644 --- a/csharp/test/Drivers/Snowflake/ValueTests.cs +++ b/csharp/test/Drivers/Snowflake/ValueTests.cs @@ -239,6 +239,13 @@ private static string ConvertDoubleToString(double value) return "'-inf'"; case double.NaN: return "'NaN'"; +#if NET472 + // Standard Double.ToString() calls round up the max value, resulting in Snowflake storing infinity + case double.MaxValue: + return "1.7976931348623157E+308"; + case double.MinValue: + return "-1.7976931348623157E+308"; +#endif default: return value.ToString(); }