Browse Source

CodeCoverage: Fix overlapping namespaces

pull/67/head
Dragan 12 years ago
parent
commit
fcba6b71c8
  1. 3
      src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageMethod.cs

3
src/AddIns/Analysis/CodeCoverage/Project/Src/CodeCoverageMethod.cs

@ -211,8 +211,9 @@ namespace ICSharpCode.CodeCoverage
public static List<CodeCoverageMethod> GetAllMethods(List<CodeCoverageMethod> methods, string namespaceStartsWith) public static List<CodeCoverageMethod> GetAllMethods(List<CodeCoverageMethod> methods, string namespaceStartsWith)
{ {
List<CodeCoverageMethod> matchedMethods = new List<CodeCoverageMethod>(); List<CodeCoverageMethod> matchedMethods = new List<CodeCoverageMethod>();
namespaceStartsWith += ".";
foreach (CodeCoverageMethod method in methods) { foreach (CodeCoverageMethod method in methods) {
if (method.ClassNamespace.StartsWith(namespaceStartsWith)) { if ((method.ClassNamespace+".").StartsWith(namespaceStartsWith)) {
matchedMethods.Add(method); matchedMethods.Add(method);
} }
} }

Loading…
Cancel
Save