@@ -299,7 +299,7 @@ public void TestMethods(IEnumerable<TestMethod> testMethods, IEnumerable<FileAna
299
299
codeElement . FirstLine ,
300
300
codeElement . CoverageQuota . HasValue ? coverageRounded . ToString ( ) : "undefined" ,
301
301
codeElement . CoverageQuota . HasValue ? ReportResources . Coverage2 + " " + codeElement . CoverageQuota . Value . ToString ( CultureInfo . InvariantCulture ) + "% - " : string . Empty ,
302
- WebUtility . HtmlEncode ( codeElement . Name ) ,
302
+ WebUtility . HtmlEncode ( $ "File { item . Key } => " + codeElement . Name ) ,
303
303
codeElement . CodeElementType == CodeElementType . Method ? "cube" : "wrench" ) ;
304
304
}
305
305
}
@@ -626,7 +626,8 @@ public void KeyValueRow(string key, string value)
626
626
/// <param name="files">The files.</param>
627
627
public void KeyValueRow ( string key , IEnumerable < string > files )
628
628
{
629
- string value = string . Join ( "<br />" , files . Select ( v => string . Format ( CultureInfo . InvariantCulture , "<a href=\" #{0}\" class=\" navigatetohash\" >{1}</a>" , WebUtility . HtmlEncode ( StringHelper . ReplaceNonLetterChars ( v ) ) , WebUtility . HtmlEncode ( v ) ) ) ) ;
629
+ int fileIndex = 0 ;
630
+ string value = string . Join ( "<br />" , files . Select ( v => string . Format ( CultureInfo . InvariantCulture , "<a href=\" #{0}\" class=\" navigatetohash\" >{1}</a>" , WebUtility . HtmlEncode ( StringHelper . ReplaceNonLetterChars ( v ) ) , WebUtility . HtmlEncode ( $ "File { fileIndex ++ } : " + v ) ) ) ) ;
630
631
631
632
this . reportTextWriter . WriteLine (
632
633
"<tr><th>{0}</th><td>{1}</td></tr>" ,
@@ -686,11 +687,11 @@ public void MetricsTable(Class @class)
686
687
WebUtility . HtmlEncode ( methodMetric . FullName ) ,
687
688
fileIndex ,
688
689
methodMetric . Line ,
689
- WebUtility . HtmlEncode ( methodMetric . ShortName ) ) ;
690
+ WebUtility . HtmlEncode ( $ "File { fileIndex } => " + methodMetric . ShortName ) ) ;
690
691
}
691
692
else
692
693
{
693
- this . reportTextWriter . Write ( "<td title=\" {0}\" >{1}</td>" , WebUtility . HtmlEncode ( methodMetric . FullName ) , WebUtility . HtmlEncode ( methodMetric . ShortName ) ) ;
694
+ this . reportTextWriter . Write ( "<td title=\" {0}\" >{1}</td>" , WebUtility . HtmlEncode ( methodMetric . FullName ) , WebUtility . HtmlEncode ( file . Path + " => " + methodMetric . ShortName ) ) ;
694
695
}
695
696
696
697
foreach ( var metric in metrics )
0 commit comments