我对SpecFlow来说还很陌生,我在代码隐藏文件方面一直遇到问题。我可以看到它们是在文件中生成的,但是在VS中不可见,这意味着代码隐藏文件未附加到功能文件中。这导致以下错误:
---- System.Configuration.ConfigurationErrorsException : Configuration system failed to initialize
-------- System.Configuration.ConfigurationErrorsException : Unrecognized configuration section specFlow. (\bin\Debug\somefile.dll.config line 52)
---- The following constructor parameters did not have matching fixture data: FixtureData fixtureData
删除feature.cs并重建解决方案无济于事。
下载了名为“文件嵌套”的扩展程序。构建时,我将生成的特征文件添加为现有项,然后使用扩展名将其嵌套在特征文件中。