This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new bbacf586fe1 IGNITE-25472 .NET: Fix locale sensitivity in 
BigDecimalTests.TestToString (#6095)
bbacf586fe1 is described below

commit bbacf586fe1bdf09cacce8fd0edc4a59614947b9
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Mon Jun 23 17:31:33 2025 +0300

    IGNITE-25472 .NET: Fix locale sensitivity in BigDecimalTests.TestToString 
(#6095)
---
 modules/platforms/dotnet/Apache.Ignite.Tests/BigDecimalTests.cs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite.Tests/BigDecimalTests.cs 
b/modules/platforms/dotnet/Apache.Ignite.Tests/BigDecimalTests.cs
index 69108a5db7b..0f5a7562dae 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Tests/BigDecimalTests.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Tests/BigDecimalTests.cs
@@ -91,9 +91,11 @@ public class BigDecimalTests
     {
         var bigDecimal = new BigDecimal(BigInteger.Parse(unscaled), scale);
 
-        var str = cultureName == null
-            ? bigDecimal.ToString()
-            : bigDecimal.ToString(CultureInfo.GetCultureInfo(cultureName));
+        var culture = cultureName == null
+            ? CultureInfo.InvariantCulture
+            : CultureInfo.GetCultureInfo(cultureName);
+
+        var str = bigDecimal.ToString(culture);
 
         Assert.AreEqual(expected, str);
     }

Reply via email to