sawilde/opencover — Issue #56: Coverage not getting reported for IEnumerable<T> extension method
Author: cameronfletcher
Created: 2011-11-29 22:16:00+00:00
State: open

I cannot seem to get the following C# .NET console app reporting full coverage when using OpenCover:

class Program
{
static void Main(string[] args)
{
new[] { "test" }.UncoveredMethod();
}
}

public static class UncoveredExtensionMethods
{
public static IEnumerable UncoveredMethod(this IEnumerable items)
{
yield return "This is uncovered.";
}
}

Here is the output from OpenCover: http://dl.dropbox.com/u/51486503/results.xml
I'm not sure if the XML output is invalid or if the issue lies with ReportGenerator.