Skip to content

Commit

Permalink
Error with Math.Floor and Parse fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ArVPonomareva committed Mar 20, 2014
1 parent 70715eb commit a86adfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JunitReportParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public JunitReportParser(string report)
// parsing
string suite = testcase.Attribute("classname").Value;
string test = testcase.Attribute("name").Value;
string duration = Math.Floor((float.Parse(testcase.Attribute("time").Value)*1000)).ToString();
string duration =(1000*(Math.Floor(double.Parse(testcase.Attribute("time").Value)))).ToString();
bool failed = (testcase.Descendants("failure").Count() > 0);
string failure_message = "";
string outcome = (failed) ? "Failed" : "Passed";
Expand Down

0 comments on commit a86adfa

Please sign in to comment.