Skip to content

Commit aebc699

Browse files
author
Michael Hallett
committed
added invariant culture to exponential notation test; closes #671
1 parent aee0157 commit aebc699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp.Tests/JsonTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void Can_Deserialize_Exponential_Notation()
3737
const string content = "{ \"Value\": 4.8e-04 }";
3838
var json = new JsonDeserializer();
3939
var output = json.Deserialize<DecimalNumber>(new RestResponse { Content = content });
40-
var expected = Decimal.Parse("4.8e-04", NumberStyles.Float);
40+
var expected = Decimal.Parse("4.8e-04", NumberStyles.Float, CultureInfo.InvariantCulture);
4141

4242
Assert.NotNull(output);
4343
Assert.Equal(expected, output.Value);

0 commit comments

Comments
 (0)