NUnit ERROR DOMConfigurator: ConfigureFromXML called with null 'element' parameter
原因:没有为dll指定正确的配置文件
解决办法:
1. 如果是用Visual Studio .NET,在预生成事件命令行中键入:
2.在NUnit gui 中的project>Edit 窗口中编辑 configuration file name,在config前面键入.dll
最后的样式就是 yourassembly.dll.config
解决办法:
1. 如果是用Visual Studio .NET,在预生成事件命令行中键入:
copy /y "$(ProjectDir)App.config" "$(TargetPath).config"
copy /y "$(ProjectDir)hibernate.cfg.xml" "hibernate.cfg.xml"
copy /y "$(ProjectDir)hibernate.cfg.xml" "hibernate.cfg.xml"
最后的样式就是 yourassembly.dll.config