在NUnit中加载项目时出错

时间:2016-01-08 09:51:22

标签: selenium c#-4.0 nunit

我正在尝试在NUnit GUI中加载项目。但是我收到了错误

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.Open(String path, FileMode mode, FileAccess access, FileShare share)
at WellsFargo.Tridion.NUnit.DailyMonitoringTesting.TestDataFactory.GetInputData(String NodeName) in C:\Users\u382343\Desktop\PQC Patching Project\source\WellsFargo.Tridion.NUnit.DailyMonitoringTesting\Common\TestDataFactory.cs:line 153
at WellsFargo.Tridion.NUnit.DailyMonitoringTesting.TestDataFactory.<get_F5Url>d__0.MoveNext() in C:\Users\u382343\Desktop\PQC Patching Project\source\WellsFargo.Tridion.NUnit.DailyMonitoringTesting\Common\TestDataFactory.cs:line 21
at NUnit.Core.Builders.TestCaseSourceProvider.GetTestCasesFor(MethodInfo method, Test parentSuite)
at NUnit.Core.Extensibility.TestCaseProviders.GetTestCasesFor(MethodInfo method, Test suite)

谁能告诉我这个错误是什么?

1 个答案:

答案 0 :(得分:0)

如果所有必需/从属dll未正确复制到释放文件夹,那么您尝试加载NUnit GUI,则会抛出此错误。

请参阅:Why am I getting a FileNotFound exception when referencing another project from the same solution?