在试图升级到.NET最新的Fitnesse/fitSharp发行版时,我发现以独立模式编写的数据库操作现在都失败了。这与我以前的Fitnesse安装(没有fitSharp)很好。试图连接到数据库的尝试:
!|import |
|dbfit.fixture|
!|DatabaseEnvironment|sqlserver|
|Connect|Data Source=DevDB1;Initial Catalog=TestDB;Integrated Security=SSPI|生成此错误:
fitSharp.Machine.Exception.TypeMissingException: Type 'SqlServerEnvironment' not found in assemblies:
<assemblies listed here>. . .搜索的程序集列表包括dbfit.DLL、dbfit.Oracle.DLL和dbfit.SqlServer.DLL,.NET Reflector确认“SqlServerEnvironment”实际上在dbfit.DLL文件中。
如果我从独立模式更改为flow模式,并使用以下测试表作为测试的第一个表,则DB连接可以正常工作:
!|dbfit.SqlServerTest |
|Connect|Data Source=DevDB1;Initial Catalog=TestDB;Integrated Security=SSPI|版本信息:
20110104
我是遗漏了什么,还是在最新版本的fitSharp中出现了已知的缺陷?
发布于 2011-01-13 23:18:59
这是个已知的窃听器。应该在下一个版本中修复。
https://stackoverflow.com/questions/4672878
复制相似问题