Skip to content

Commit 8a40801

Browse files
committed
Fix culture dependency in ParseDecimalWithFallbackOnOverflow_Overflows_ReturnsFallback test
1 parent d1cf89f commit 8a40801

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.OpenApi.Readers.Tests/ParseNodes/ParserHelperTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4+
using System.Globalization;
45
using Microsoft.OpenApi.Readers.ParseNodes;
56
using Xunit;
67

@@ -18,7 +19,7 @@ public void ParseDecimalWithFallbackOnOverflow_ReturnsParsedValue()
1819
[Fact]
1920
public void ParseDecimalWithFallbackOnOverflow_Overflows_ReturnsFallback()
2021
{
21-
Assert.Equal(10, ParserHelper.ParseDecimalWithFallbackOnOverflow(double.MaxValue.ToString(), 10));
22+
Assert.Equal(10, ParserHelper.ParseDecimalWithFallbackOnOverflow(double.MaxValue.ToString(CultureInfo.InvariantCulture), 10));
2223
}
2324
}
2425
}

0 commit comments

Comments
 (0)