From 91fc4ddf992a557dcd5628738901664d6d82d2d6 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sat, 18 Apr 2009 13:32:31 +0000 Subject: [PATCH] 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 --- .../CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AddIns/Misc/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs b/src/AddIns/Misc/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs index d3e0d87b1f..b746934512 100644 --- a/src/AddIns/Misc/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs +++ b/src/AddIns/Misc/CodeCoverage/Project/Src/RunTestWithCodeCoverageCommand.cs @@ -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 void AddStringsToCollection(StringCollection source, StringCollection target) { + target.Clear(); foreach (string item in source) { target.Add(item); }