This project is read-only.
1
Vote

Assumes . as decimal separator

description

I'm using sv-FI locale that has , as decimal separator.
 
Then I end up with following:
 
Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToDouble(String value)
at VSTSUnitTestReport.XmlManipulations.GetTestPassFails(XmlDocument doc, testProjectDetails& t)
at VSTSUnitTestReport.GenerateReport.MyMain(String input, String output, String codecoverageXML)
 
(If I change to use en-us, then report is generated successfully)
 
You'll need to throw in a CultureInfo.InvariantCulture to Convert.ToDouble to make it work

comments