Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1943

Decimal tests are culture-dependent

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0
    • 2.4.3
    • Testing
    • 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.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: