diff --git a/test/UnitTests/TestFramework.UnitTests/Assertions/AssertTests.That.cs b/test/UnitTests/TestFramework.UnitTests/Assertions/AssertTests.That.cs index d0a9d9e004..605e09980e 100644 --- a/test/UnitTests/TestFramework.UnitTests/Assertions/AssertTests.That.cs +++ b/test/UnitTests/TestFramework.UnitTests/Assertions/AssertTests.That.cs @@ -1157,7 +1157,7 @@ public void That_Coalesce_ShortCircuit_PassingAssertion_DoesNotInvokeRight() string? value = "hello"; // Non-null value short-circuits the null-coalescing operator; counter.Increment() must NOT run. - Action act = () => Assert.That(() => (value ?? counter.Increment().ToString()) == "hello"); + Action act = () => Assert.That(() => (value ?? counter.Increment().ToString(CultureInfo.InvariantCulture)) == "hello"); act.Should().NotThrow(); counter.Count.Should().Be(0);