title: Visual Studio 2012 ExcludeFromCodeCoverage Method Shows In Results
body: <p>I have the following method:</p>
  
  <pre><code>[ExcludeFromCodeCoverage]
  private static string GetAuthorizationToken(HttpActionContext actionContext)
  {
      var authorization = actionContext.Request.Headers.FirstOrDefault(h =&gt; h.Key.Equals("Authorization"));
      // ... removed for brevity
  }
  </code></pre>
  
  <p>The <code>ExcludeFromCodeCoverage</code> attribute works for the whole method, except for <code>h.Key.Equals("Authorization")</code>, which shows as uncovered despite the attribute on the method.</p>
  
  <p>How can I exclude this symbol from code coverage results?</p>