@@ -77,8 +77,8 @@ public string Report(CoverageResult result)
77
77
78
78
method . Add ( new XAttribute ( "cyclomaticComplexity" , methCyclomaticComplexity . ToString ( ) ) ) ;
79
79
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 ) ) ) ;
82
82
method . Add ( new XAttribute ( "isConstructor" , meth . Key . Contains ( "ctor" ) . ToString ( ) ) ) ;
83
83
method . Add ( new XAttribute ( "isGetter" , meth . Key . Contains ( "get_" ) . ToString ( ) ) ) ;
84
84
method . Add ( new XAttribute ( "isSetter" , meth . Key . Contains ( "set_" ) . ToString ( ) ) ) ;
@@ -158,8 +158,8 @@ public string Report(CoverageResult result)
158
158
methodSummary . Add ( new XAttribute ( "visitedSequencePoints" , methLineCoverage . Covered . ToString ( ) ) ) ;
159
159
methodSummary . Add ( new XAttribute ( "numBranchPoints" , methBranchCoverage . Total . ToString ( ) ) ) ;
160
160
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 ) ) ) ;
163
163
methodSummary . Add ( new XAttribute ( "maxCyclomaticComplexity" , methCyclomaticComplexity . ToString ( ) ) ) ;
164
164
methodSummary . Add ( new XAttribute ( "minCyclomaticComplexity" , methCyclomaticComplexity . ToString ( ) ) ) ;
165
165
methodSummary . Add ( new XAttribute ( "visitedClasses" , "0" ) ) ;
@@ -192,8 +192,8 @@ public string Report(CoverageResult result)
192
192
classSummary . Add ( new XAttribute ( "visitedSequencePoints" , classLineCoverage . Covered . ToString ( ) ) ) ;
193
193
classSummary . Add ( new XAttribute ( "numBranchPoints" , classBranchCoverage . Total . ToString ( ) ) ) ;
194
194
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 ) ) ) ;
197
197
classSummary . Add ( new XAttribute ( "maxCyclomaticComplexity" , classMaxCyclomaticComplexity . ToString ( ) ) ) ;
198
198
classSummary . Add ( new XAttribute ( "minCyclomaticComplexity" , classMinCyclomaticComplexity . ToString ( ) ) ) ;
199
199
classSummary . Add ( new XAttribute ( "visitedClasses" , classVisited ? "1" : "0" ) ) ;
@@ -223,8 +223,8 @@ public string Report(CoverageResult result)
223
223
coverageSummary . Add ( new XAttribute ( "visitedSequencePoints" , moduleLineCoverage . Covered . ToString ( ) ) ) ;
224
224
coverageSummary . Add ( new XAttribute ( "numBranchPoints" , moduleBranchCoverage . Total . ToString ( ) ) ) ;
225
225
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 ) ) ) ;
228
228
coverageSummary . Add ( new XAttribute ( "maxCyclomaticComplexity" , moduleMaxCyclomaticComplexity . ToString ( ) ) ) ;
229
229
coverageSummary . Add ( new XAttribute ( "minCyclomaticComplexity" , moduleMinCyclomaticComplexity . ToString ( ) ) ) ;
230
230
coverageSummary . Add ( new XAttribute ( "visitedClasses" , visitedClasses . ToString ( ) ) ) ;
0 commit comments