[CSHARP-1943] Decimal tests are culture-dependent Created: 13/Mar/17  Updated: 13/Feb/19  Resolved: 13/Feb/19

Status: Closed
Project: C# Driver
Component/s: Testing
Affects Version/s: 2.4.3
Fix Version/s: 2.8.0

Type: Improvement Priority: Major - P3
Reporter: Aristarkh Zagorodnikov Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Hi!

The Decimal128Tests.Decimal uses current culture to parse the InlineData strings. This leads to test failures when decimal separator is not a period. The call to decimal.Parse should include the specific (invariant?) culture.



 Comments   
Comment by Githook User [ 13/Feb/19 ]

Author:

{'name': 'Aristarkh Zagorodnikov', 'email': 'xm@drive.net', 'username': 'onyxmaster'}

Message: CSHARP-1943: Fixed Decimal128 tests that are culture dependent.`
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/d0b3f61e6f04a622b5089f3b3a0cc489d4bc0e46

Comment by Aristarkh Zagorodnikov [ 13/Mar/17 ]

https://github.com/mongodb/mongo-csharp-driver/pull/274

Generated at Wed Feb 07 21:41:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.