Spring
을 사용하여 MSTest를 만들었습니다. 이 테스트에서는 TestContext을 사용합니다.TestContext에 대한 종속성 검사 사용 안 함
[TestClass]
public class Test : AbstractDependencyInjectionSpringContextTests
{
[TestMethod]
public void Test()
{
}
protected override string[] ConfigLocations
{
get
{
return new string[] { "~/Configuration/spring.config"};
}
}
public TestContext TestContext { get; set; }
}
나는 다음과 같은 오류가 테스트를 실행하면 :
가 어떻게이 TestContext
속성에 대한 의존성 주입을 사용하지 않도록 설정할 수 있습니다
?Unsatisfied dependency expressed through object property 'TestContext': Set this property value or disable dependency checking for this object..