{"action":"opened","issue":{"url":"https://api.github.com/repos/xunit/xunit/issues/409","labels_url":"https://api.github.com/repos/xunit/xunit/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/xunit/xunit/issues/409/comments","events_url":"https://api.github.com/repos/xunit/xunit/issues/409/events","html_url":"https://github.com/xunit/xunit/issues/409","id":71754354,"number":409,"title":"Collection Fixtures not working sometimes","user":{"login":"zijianhuang","id":8484970,"avatar_url":"https://avatars.githubusercontent.com/u/8484970?v=3","gravatar_id":"","url":"https://api.github.com/users/zijianhuang","html_url":"https://github.com/zijianhuang","followers_url":"https://api.github.com/users/zijianhuang/followers","following_url":"https://api.github.com/users/zijianhuang/following{/other_user}","gists_url":"https://api.github.com/users/zijianhuang/gists{/gist_id}","starred_url":"https://api.github.com/users/zijianhuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zijianhuang/subscriptions","organizations_url":"https://api.github.com/users/zijianhuang/orgs","repos_url":"https://api.github.com/users/zijianhuang/repos","events_url":"https://api.github.com/users/zijianhuang/events{/privacy}","received_events_url":"https://api.github.com/users/zijianhuang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T01:38:02Z","updated_at":"2015-04-29T01:38:02Z","closed_at":null,"body":"After spending a few hours and reading http://xunit.github.io/docs/shared-context.html a few times, I finally found out why.\r\n\r\nI had this\r\n[CollectionDefinition(\"IISExpress\")]\r\npublic class IisCollection : ICollectionFixture<Fonlow.Testing.IisExpressFixture>\r\n{\r\n}\r\n\r\nin the same assembly Fonlow.Testing.dll together with IisExpressFixture, to be reused by multiple projects of integration testing. Now I know class IisCollection has to be defined in each xUnit test project. The the scope of IisCollection is within the test assembly. \r\n\r\nAnyway, it will be better to mention in the documentation that the scope of the class decorated by CollectionDefinitionAttribute is within the test assembly. So programmers with good habits of developing reusable classes and components will keep this in mind.\r\n\r\n"}}