Skip to content

Commit c2ca883

Browse files
Merge pull request #1492 from dldl-cmd/fix_ParseDecimalWithFallbackOnOverflow_Overflows_ReturnsFallback_culture_dependend
Fix culture dependency in ParseDecimalWithFallbackOnOverflow_Overflows_ReturnsFallback test
2 parents d1cf89f + 8a40801 commit c2ca883

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)