Код: Выделить всё
public class MyFixture
{
IDependency _dep;
public MyFixture(IDependency dep)
{
_dep = dep;
}
void DoSomeJob()
{
//// some code there
dep.DoSome();
}
}
Код: Выделить всё
public class MyTest : IClassFixture
{
[Fact]
public void test_my_code()
{
////simply just test the code
}
}
Xunit.Sdk.TestClassException Тип приспособления класса 'MyFixture ' имел один или несколько неразрешенных конструкторов
Подробнее здесь: https://stackoverflow.com/questions/675 ... e-in-xunit
Мобильная версия