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

In nl-NL culture (and others), the BsonValueIConvertible tests fail

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      This line (\BsonUnitTests\ObjectModel\BsonValueIConvertibleTests.cs 144):

                  Assert.AreEqual("1.5", Convert.ToString(value));
      

      fails on my machine, because of the nl-NL culture I use.

      If you change the line to:

                  Assert.AreEqual("1.5", Convert.ToString(value, CultureInfo.InvariantCulture));
                  Assert.AreEqual("1,5", Convert.ToString(value, CultureInfo.GetCultureInfo("nl-NL")));
      

      you can see the fail.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            teund Teun Duynstee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: