为什么 nUnit 不执行我的 SpecsFor.Mvc 测试?

Why doesn't nUnit execute my SpecsFor.Mvc tests?

我正在尝试使用 SpecsFor.Mvc 实施端到端测试。我实施了以下测试:

namespace Features
{
    class AddEvents
    {

        public class when_a_user_adds_an_event: SpecsFor<MvcWebApp>
        {
            protected override void Given()
            {
                SUT.NavigateTo<HomeController>(c => c.Index());
            }
            protected override void When()
            {

                SUT.Browser.FindElementById("btn-add-event").Click();
                SUT.FindFormFor<Event>()
                    .Field(f => f.Name).SetValueTo("Alex")
                    .Field(f => f.Date).SetValueTo("01/01/2013")
                    .Submit();
            }

            [Test]
            public void then_event_should_be_added()
            {
                Assert.Fail();
            }
        }
    }
}

问题是,nUnit 没有发现这个测试并报告它没有找到任何测试。我有以下设置:

知道为什么这个测试被测试运行者忽略了吗?

报告了与 SpecsFor.MVC 有关的 NUnit 问题,请参阅 https://github.com/nunit/nunit/issues/1277

据我们(nunit 人员)所知,SpecsFor 不支持 NUnit 3.0。然而,这是基于对其代码的非常粗略的检查。 None 我们真的很熟悉它。

坦率地说,除非对 SpecsFor 有深入了解的人提出建议,否则问题不会有太大进展。