相关疑难解决方法(0)

如果测试有,那么SetUp和TearDown方法是否需要[RequiresSTA]?

我可以毫无问题地使用ReSharper运行我的WatiN测试.每个测试都具有RequiresSTA属性并且运行正常.

当我尝试在类中运行所有测试(TestFixture)时,我收到以下错误:

One or more child tests had errors
Exception doesn't have a stacktrace
<testname>  ignored: Invalid signature for SetUp or TearDown method: TestSetup
<testname>  ignored: Invalid signature for SetUp or TearDown method: TestSetup
<testname>  ignored: Invalid signature for SetUp or TearDown method: TestSetup
Run Code Online (Sandbox Code Playgroud)

该错误并不表示我需要更改以使其工作.

如果我然后选择在单元测试会话窗口中忽略的所有测试,我可以毫无问题地运行它们.

我必须更改什么才能让我在TestFixture中运行所有测试?

resharper nunit watin

5
推荐指数
1
解决办法
3302
查看次数

标签 统计

nunit ×1

resharper ×1

watin ×1