title: Collection fixture won't inject
body: <p>I'm using xUnit 2.0 <a href="http://xunit.github.io/docs/shared-context.html" rel="noreferrer">collection fixtures</a> to share a common database setup/teardown between a number of different test classes. The fixture also provides some helper properties, so I'm injecting it into each test class.</p>
  
  <p>I recreated the example in the docs, but when I run the test, it fails immediately with:</p>
  
  <blockquote>
    <p>The following constructor parameters did not have matching fixture data: IntegrationTestFixture fixture</p>
  </blockquote>
  
  <p>This seems to happen regardless of whether I'm using xUnit Facts or Theories, or which test runner I'm using.</p>
  
  <hr>
  
  <p>Fixture:</p>
  
  <pre><code>public class IntegrationTestFixture : IDisposable
  {
      public IntegrationTestFixture()
      {
          // (setup code)
          this.GeneratedTestName = [randomly generated];
      }
  
      public void Dispose()
      {
          // (teardown code)
      }
  
      public string GeneratedTestName { get; private set; }
  }
  </code></pre>
  
  <p>Collection definition:</p>
  
  <pre><code>[CollectionDefinition("Live tests")]
  public class IntegrationTestCollection : ICollectionFixture&lt;IntegrationTestFixture&gt;
  {
      // Intentionally left blank.
      // This class only serves as an anchor for CollectionDefinition.
  }
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>[CollectionDefinition("Live tests")]
  public class SomeTests
  {
      private readonly IntegrationTestFixture fixture;
  
      public SomeTests(IntegrationTestFixture fixture)
      {
          this.fixture = fixture;
      }
  
      [Fact]
      public void MyTestMethod()
      {
          // ... test here
      }
  }
  </code></pre>