Skip to content

Commit

Permalink
Make test check on invariant culture
Browse files Browse the repository at this point in the history
  • Loading branch information
NinoFloris committed Jan 31, 2024
1 parent 1f6451b commit 5d4609d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Npgsql.Tests/Types/NumericTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Numerics;
using System.Threading.Tasks;
Expand Down Expand Up @@ -211,7 +212,7 @@ public async Task NumericZero_WithScale()
#if NET7_0_OR_GREATER
Assert.That(value.Scale, Is.EqualTo(2));
#else
Assert.That(value.ToString(), Is.EqualTo(0.00M.ToString()));
Assert.That(value.ToString(CultureInfo.InvariantCulture), Is.EqualTo(0.00M.ToString(CultureInfo.InvariantCulture)));
#endif
}

Expand Down

0 comments on commit 5d4609d

Please sign in to comment.