Skip to content

Commit

Permalink
Merge pull request #1492 from dldl-cmd/fix_ParseDecimalWithFallbackOn…
Browse files Browse the repository at this point in the history
…Overflow_Overflows_ReturnsFallback_culture_dependend

Fix culture dependency in ParseDecimalWithFallbackOnOverflow_Overflows_ReturnsFallback test
  • Loading branch information
MaggieKimani1 authored Dec 4, 2023
2 parents d1cf89f + 8a40801 commit c2ca883
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

using System.Globalization;
using Microsoft.OpenApi.Readers.ParseNodes;
using Xunit;

Expand All @@ -18,7 +19,7 @@ public void ParseDecimalWithFallbackOnOverflow_ReturnsParsedValue()
[Fact]
public void ParseDecimalWithFallbackOnOverflow_Overflows_ReturnsFallback()
{
Assert.Equal(10, ParserHelper.ParseDecimalWithFallbackOnOverflow(double.MaxValue.ToString(), 10));
Assert.Equal(10, ParserHelper.ParseDecimalWithFallbackOnOverflow(double.MaxValue.ToString(CultureInfo.InvariantCulture), 10));
}
}
}

0 comments on commit c2ca883

Please sign in to comment.