NCrunch seems to ignoring ICollectionFixture<T>
http://xunit.github.io/d...html#collection-fixture
I my case i have simple Fixture (just setting up Mappings for AutoMapper)
Code:
public class AutoMapperFixture : IDisposable
{
public AutoMapperFixture()
{
AutoMapperForTests.AddMappingsFromAssemblyOf<UserMapping>();
}
public void Dispose()
{
AutoMapperForTests.ResetMappings();
}
}
the Collection Definition
Code:
[CollectionDefinition(AutoMapperCollection.Name)]
public class AutoMapperCollection : ICollectionFixture<AutoMapperFixture>
{
public const string Name = "AutoMapperCollection";
}
and the the using of
Code:
[Collection(AutoMapperCollection.Name)]
public class UserApiControllerCreateUser : WebApiAutoFixtureMoq<UsersApiController> {
}
in this case i'm im not doing a constructor injection of the AutoMapperFixture.
Works in Visual Studio, Visual Studio Online, ReSharper, Command Line but works not in NCrunch 2.15.
I may also the case the IClassFixture<T> is also not working