Browse Source

Code coverage results now generated when an exclusion has been added to the project.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3998 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 17 years ago
parent
commit
91fc4ddf99
  1. 3
      src/AddIns/Misc/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs

3
src/AddIns/Misc/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs

@ -89,7 +89,7 @@ namespace ICSharpCode.CodeCoverage @@ -89,7 +89,7 @@ namespace ICSharpCode.CodeCoverage
// will ignore any type that has no source code available
// for it even though the type may be in the Part Cover
// results file.
if (settings.Include.Count + settings.Exclude.Count == 0) {
if (settings.Include.Count == 0) {
settings.Include.Add("[*]*");
}
@ -177,6 +177,7 @@ namespace ICSharpCode.CodeCoverage @@ -177,6 +177,7 @@ namespace ICSharpCode.CodeCoverage
void AddStringsToCollection(StringCollection source, StringCollection target)
{
target.Clear();
foreach (string item in source) {
target.Add(item);
}

Loading…
Cancel
Save