VB.NET nUnit TestFixture:在测试资源管理器中找不到测试

VB.NET nUnit TestFixture: test not found in Test Explorer

这是我的问题。

我在我的单元测试项目中创建了一个新的 class 并将 TestFixture 属性添加到 class。

然后我添加了 TestMethod 并构建了项目。问题是测试资源管理器没有找到测试,所以我不能 运行 它!

<TestFixture()> _
Public Class _SmokeTests

<TestMethod()>
Public Sub ServiceIsAccessible()
Pages.BaseNavigation.GoToLoginPage()
Assert.IsTrue(Pages.loginPage.IsAtPage())
End Sub

如果我将 'TestFixture' 更改为 'TestClass',则会找到测试,但这不是我想要的,因为我认为我需要 'TestFixture' 到 运行 'TestFixtureTearDown' 方法等

我正在使用 VS2013。

感谢任何帮助!

好的,我已经解决了问题 - 这是版本不匹配。

因为我使用的是 NUnit (3.0),所以我需要安装 NUnit3 测试适配器。

NUnit Unit tests not showing in Test Explorer with Test Adapter is installed

感谢大家的宝贵时间。