@@ -77,8 +77,8 @@ public string Report(CoverageResult result)
7777
7878 method . Add ( new XAttribute ( "cyclomaticComplexity" , methCyclomaticComplexity . ToString ( ) ) ) ;
7979 method . Add ( new XAttribute ( "nPathComplexity" , "0" ) ) ;
80- method . Add ( new XAttribute ( "sequenceCoverage" , Math . Round ( methLineCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
81- method . Add ( new XAttribute ( "branchCoverage" , Math . Round ( methBranchCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
80+ method . Add ( new XAttribute ( "sequenceCoverage" , methLineCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
81+ method . Add ( new XAttribute ( "branchCoverage" , methBranchCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
8282 method . Add ( new XAttribute ( "isConstructor" , meth . Key . Contains ( "ctor" ) . ToString ( ) ) ) ;
8383 method . Add ( new XAttribute ( "isGetter" , meth . Key . Contains ( "get_" ) . ToString ( ) ) ) ;
8484 method . Add ( new XAttribute ( "isSetter" , meth . Key . Contains ( "set_" ) . ToString ( ) ) ) ;
@@ -158,8 +158,8 @@ public string Report(CoverageResult result)
158158 methodSummary . Add ( new XAttribute ( "visitedSequencePoints" , methLineCoverage . Covered . ToString ( ) ) ) ;
159159 methodSummary . Add ( new XAttribute ( "numBranchPoints" , methBranchCoverage . Total . ToString ( ) ) ) ;
160160 methodSummary . Add ( new XAttribute ( "visitedBranchPoints" , methBranchCoverage . Covered . ToString ( ) ) ) ;
161- methodSummary . Add ( new XAttribute ( "sequenceCoverage" , Math . Round ( methLineCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
162- methodSummary . Add ( new XAttribute ( "branchCoverage" , Math . Round ( methBranchCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
161+ methodSummary . Add ( new XAttribute ( "sequenceCoverage" , methLineCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
162+ methodSummary . Add ( new XAttribute ( "branchCoverage" , methBranchCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
163163 methodSummary . Add ( new XAttribute ( "maxCyclomaticComplexity" , methCyclomaticComplexity . ToString ( ) ) ) ;
164164 methodSummary . Add ( new XAttribute ( "minCyclomaticComplexity" , methCyclomaticComplexity . ToString ( ) ) ) ;
165165 methodSummary . Add ( new XAttribute ( "visitedClasses" , "0" ) ) ;
@@ -192,8 +192,8 @@ public string Report(CoverageResult result)
192192 classSummary . Add ( new XAttribute ( "visitedSequencePoints" , classLineCoverage . Covered . ToString ( ) ) ) ;
193193 classSummary . Add ( new XAttribute ( "numBranchPoints" , classBranchCoverage . Total . ToString ( ) ) ) ;
194194 classSummary . Add ( new XAttribute ( "visitedBranchPoints" , classBranchCoverage . Covered . ToString ( ) ) ) ;
195- classSummary . Add ( new XAttribute ( "sequenceCoverage" , Math . Round ( classLineCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
196- classSummary . Add ( new XAttribute ( "branchCoverage" , Math . Round ( classBranchCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
195+ classSummary . Add ( new XAttribute ( "sequenceCoverage" , classLineCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
196+ classSummary . Add ( new XAttribute ( "branchCoverage" , classBranchCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
197197 classSummary . Add ( new XAttribute ( "maxCyclomaticComplexity" , classMaxCyclomaticComplexity . ToString ( ) ) ) ;
198198 classSummary . Add ( new XAttribute ( "minCyclomaticComplexity" , classMinCyclomaticComplexity . ToString ( ) ) ) ;
199199 classSummary . Add ( new XAttribute ( "visitedClasses" , classVisited ? "1" : "0" ) ) ;
@@ -223,8 +223,8 @@ public string Report(CoverageResult result)
223223 coverageSummary . Add ( new XAttribute ( "visitedSequencePoints" , moduleLineCoverage . Covered . ToString ( ) ) ) ;
224224 coverageSummary . Add ( new XAttribute ( "numBranchPoints" , moduleBranchCoverage . Total . ToString ( ) ) ) ;
225225 coverageSummary . Add ( new XAttribute ( "visitedBranchPoints" , moduleBranchCoverage . Covered . ToString ( ) ) ) ;
226- coverageSummary . Add ( new XAttribute ( "sequenceCoverage" , Math . Round ( moduleLineCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
227- coverageSummary . Add ( new XAttribute ( "branchCoverage" , Math . Round ( moduleBranchCoverage . Percent * 100 , 2 ) . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
226+ coverageSummary . Add ( new XAttribute ( "sequenceCoverage" , moduleLineCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
227+ coverageSummary . Add ( new XAttribute ( "branchCoverage" , moduleBranchCoverage . Percent . ToString ( "G" , CultureInfo . InvariantCulture ) ) ) ;
228228 coverageSummary . Add ( new XAttribute ( "maxCyclomaticComplexity" , moduleMaxCyclomaticComplexity . ToString ( ) ) ) ;
229229 coverageSummary . Add ( new XAttribute ( "minCyclomaticComplexity" , moduleMinCyclomaticComplexity . ToString ( ) ) ) ;
230230 coverageSummary . Add ( new XAttribute ( "visitedClasses" , visitedClasses . ToString ( ) ) ) ;
0 commit comments