title: How to create custom nUnit 3 category attribute
body: <p>How can I create a custom category attribute for nUnit 3?</p>
  
  <p>I have created one like so:</p>
  
  <pre><code>[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
  public class UnitTestAttribute : CategoryAttribute
  {
  }
  </code></pre>
  
  <p>According to <a href="https://github.com/nunit/docs/wiki/Category-Attribute" rel="nofollow noreferrer">https://github.com/nunit/docs/wiki/Category-Attribute</a>, that would make a category called "UnitTest".</p>
  
  <p>And I'm using it like so:</p>
  
  <pre><code>[Test]
  [UnitTest]
  public void ExampleTest()
  {
      // Example test goes here
  }
  </code></pre>
  
  <p>As far as I know this should work but in Resharper 2017.2's Unit Test Explorer, Group by Categories, I only have "Uncategorized" tests.</p>
  
  <p>If I change:</p>
  
  <pre><code>[UnitTest]
  </code></pre>
  
  <p>to</p>
  
  <pre><code>[Category("Unit Test")]
  </code></pre>
  
  <p>Then it works.</p>
  
  <p>Any ideas?</p>
  
  <p>I'm using Visual Studio Professional 2017 Version 15.4.3</p>