sawilde/opencover — Issue #73: Filter question
Author: BradStiles
Created: 2012-03-07 16:15:47+00:00
State: open

I just downloaded and installed version 3.0.121, and I have a question about filters. From reading the usage document, if I have a filter "-[Base.NameSpace.SubNameSpace]TypeName", then a type named Base.NameSpace.SubNameSpace.TypeName should be excluded from coverage, correct? However, it still shows up in the resultant XML looking like this:

Base.NameSpace.SubNameSpace.TypeName

100663311
System.Void Base.NameSpace.SubNameSpace.TypeName::.ctor(System.Object,System.IntPtr)

100663312
System.Void Base.NameSpace.SubNameSpace.TypeName::Invoke(System.String)

100663313
System.IAsyncResult Base.NameSpace.SubNameSpace.TypeName::BeginInvoke(System.String,System.AsyncCallback,System.Object)

100663314
System.Void Base.NameSpace.SubNameSpace.TypeName::EndInvoke(System.IAsyncResult)

The source file for the piece I want excluded is named "Delegates.cs", and contains only the following:

namespace Base.NameSpace.SubNameSpace {
public delegate void TypeName(string message);
}

The source file is located in the "Base.NameSpace.SubNameSpace" directory in the file system, and the assembly that it's in is named Base.NameSpace.SubNameSpace.dll.

If you can tell me what I'm doing wrong here, I'd appreciate it.