Прямо сейчас я хотел бы поделиться всей сборкой контекста. Чтобы разобраться в этих сценариях использования, я начал использовать IAssemblyFixture: так выглядит мой код
-- Context
public class AssemblyLevelRepoFixture
{
}
public class TestBaseAssemblyFixture : Xunit.Extensions.AssemblyFixture.IAssemblyFixture<AssemblyLevelRepoFixture>
{
private readonly ITestOutputHelper testOutputHelper;
private readonly AssemblyLevelRepoFixture fixture;
}
public class SampleTest : TestBaseAssemblyFixture
{
public SampleTest(ITestOutputHelper testOutputHelper, AssemblyLevelRepoFixture fixture) : base (testOutputHelper, fixture)
{
// hellow how are you;
}
public void FirstTest()
{
Assert.True(true);
}
}
- Я столкнулся с проблемой: следующие параметры конструктора не имеют совпадающих данных фикстуры: AssemblyLevelRepoFixture fixture