为什么在测试中没有命中断点? [英] Why are breakpoints in tests not hit?

查看:733
本文介绍了为什么在测试中没有命中断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个测试项目,是解决方案的一部分几个NUnit的测试。我在每个测试方法中设置断点。 典型的其中一种方法是:

 公共无效TestHHSInterface()
{
    VAR HHSClient = IOC.container.Resolve< IHHSClient>();    变种S = HHSClient.GetTestMessage(鸭嘴,鸭嘴兽);    Assert.Greater(s.Value.Length,0);
}

测试运行,由我所看到的在这里证明:

这是正常的,断点打不?他们似乎正在运行,但该结果(通过3,不合格0)是不是真的有效,因为我加试code,它失败了,但不管是什么,测试取得成功。

我在做什么错了,还是这里省略?

更新

好吧,我下载/安装NUnit测试适配器,右键单击上面的测试,并入选调试测试

我的断点被击中了,我能跨过的第一线,但随后炸毁了;这就是我在输出窗格中看到(我知道这可能是TMI,但我不知道什么是恰当的,什么是不 - 我切出的中间,因为我的职位是太长):


  

vstest.executionengine.x86.exe'(CLR v4.0.30319:defaultdomain文件):
  加载
  C:\\ WINDOWS \\ Microsoft.Net \\装配\\ GAC_32 \\ mscorlib程序\\ v4.0_4.0.0.0__b77a5c561934e089 \\ mscorlib.dll中'。
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:defaultdomain文件):已加载C:\\ PROGRAM FILES
  (X86)\\微软的Visual Studio
  12.0 \\ COMMON7 \\ IDE \\ COMMONEXTENSIONS \\ MICROSOFT \\ TESTWINDOW \\ vstest.executionengine.x86.exe。
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):已加载C:\\ PROGRAM
  文件(x86)\\微软的Visual Studio
  12.0\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\TESTWINDOW\\Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):加载
  C:\\ WINDOWS \\ Microsoft.Net \\装配\\ GAC_MSIL \\ SYSTEM \\ v4.0_4.0.0.0__b77a5c561934e089 \\ System.dll中。
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):已加载C:\\ PROGRAM
  文件(x86)\\微软的Visual Studio
  12.0\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\TESTWINDOW\\Microsoft.VisualStudio.TestPlatform.ObjectModel.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):已加载C:\\ PROGRAM
  文件(x86)\\微软的Visual Studio
  12.0\\COMMON7\\IDE\\COMMONEXTENSIONS\\MICROSOFT\\TESTWINDOW\\Microsoft.VisualStudio.TestPlatform.Core.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.ServiceModel\\v4.0_4.0.0.0__b77a5c561934e089\\System.ServiceModel.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Configuration\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Configuration.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:vstest.executionengine.x86.exe):加载。 。 。


  
  

vstest.executionengine.x86.exe'(CLR v4.0.30319:
  vstest.executionengine.x86.exe):已加载C:\\ PROGRAM FILES
  (X86)\\微软的Visual Studio
  12.0 \\ COMMON7 \\ IDE \\ COMMONEXTENSIONS \\ MICROSOFT \\ TESTWINDOW \\ msdia120typelib_clr0200.dll。
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\62b76a75\\bbee3246_019acf01\\CStore.Integration.Tests.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\8379df6f\\6a4e7a10_1f92cf01\\Castle.Windsor.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\4c09b93f\\71022b68_fc99cf01\\HHS.Client.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\d29638a9\\7a8b1a66_fc99cf01\\CStore.DomainModels.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\3926c47b\\2e2ff20f_1f92cf01\\Castle.Facilities.FactorySupport.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\e881bc9e\\8fb83744_0896cf01\\CStore.Common.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\21c8b534\\60cca60f_1f92cf01\\Castle.Core.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\28a3025a\\10087044_0896cf01\\MapStores.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\a137cbd9\\253adc44_0896cf01\\HBaseMapStore.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\07c00fd2\\f8f7a644_0896cf01\\MQProcessing.MQPutService.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\bae09939\\c8a9ee66_fc99cf01\\CStore.Data.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\a22b9b5d\\688b1868_fc99cf01\\CSPoll.Client.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\30e797f5\\2901ac44_0896cf01\\CStore.Common.HTTP.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Net.Http\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Net.Http.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll'.
  无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\4590d591\\2f177866_fc99cf01\\DeviceConfig.Client.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\247d65ee\\763b5c67_fc99cf01\\CStore.Client.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\f5f7b992\\7e1ebf67_fc99cf01\\CStore.BusinessObjects.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\c8d39645\\9db0b068_fc99cf01\\MQProcessingWCFServices.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\6a87a030\\23c15269_fc99cf01\\HHS.API.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\ba0add0f\\0aa77e66_fc99cf01\\CStore.Data.Legacy.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\82c78164\\30882368_fc99cf01\\CStore.BusinessObjects.HHS.dll'.
  符号加载。 vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):加载'匿名运行
  DynamicMethods大会。 vstest.executionengine.x86.exe(CLR
  v4.0.30319:测试域HHS.Web.Tests.dll):加载
  CastleDictionaryAdapterAssembly。线程0x27f4已退出与
  code 259(0x103)。线程0xaa4已退出与code 259(0x103)。
  线程0x1c70已退出与code 259(0x103)。线程0x2578
  已退出与code 259(0x103)。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\ac0d956f\\b951e91a_1f92cf01\\Newtonsoft.Json.dll'.无法找到或打开PDB文件。 vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):加载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Net.Http.WebRequest\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Net.Http.WebRequest.dll'.
  无法找到或打开PDB文件。类型的第一次机会异常
  System.Net.Sockets.SocketException发生在System.dll中第一
  发生类型'System.Net.Sockets.SocketException'的机会异常
  在System.dll中类型的第一次机会异常
  System.Net.WebException发生在System.dll中第一次机会
  类型'System.AggregateException的异常出现在mscorlib.dll
  类型的第一次机会异常'System.ObjectDisposedException
  发生在System.dll中类型的第一次机会异常
  'System.Exception的'发生在HHS.Client.dll第一个机会异常
  类型'System.Reflection.TargetInvocationException'发生在
  MSCORLIB.DLL类型的第一次机会异常
  NUnit.Core.NUnitException发生在nunit.core.dll程序线程
  0x2128已退出与code 259(0x103)。线程0x28a0已退出
  与code 259(0x103)。线程0x29d8已退出与code 259
  (0x103)。 vstest.executionengine.x86.exe(CLR v4.0.30319:域2):
  卸载
  C:\\ WINDOWS \\ Microsoft.Net \\装配\\ GAC_32 \\ mscorlib程序\\ v4.0_4.0.0.0__b77a5c561934e089 \\ mscorlib.dll中'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\\VisualStudioTestExplorerExtensions\\NUnitTestAdapter.1.0\\lib\
unit.core.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  C:\\ WINDOWS \\ Microsoft.Net \\装配\\ GAC_MSIL \\ SYSTEM \\ v4.0_4.0.0.0__b77a5c561934e089 \\ System.dll中'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Configuration\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Configuration.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\\VisualStudioTestExplorerExtensions\\NUnitTestAdapter.1.0\\lib\
unit.core.interfaces.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\0501e887\\ab9f7e46_019acf01\\HHS.Web.Tests.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\768b7768\\f8a3911b_1f92cf01\
unit.framework.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\62b76a75\\bbee3246_019acf01\\CStore.Integration.Tests.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\8379df6f\\6a4e7a10_1f92cf01\\Castle.Windsor.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\4c09b93f\\71022b68_fc99cf01\\HHS.Client.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\d29638a9\\7a8b1a66_fc99cf01\\CStore.DomainModels.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\3926c47b\\2e2ff20f_1f92cf01\\Castle.Facilities.FactorySupport.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\e881bc9e\\8fb83744_0896cf01\\CStore.Common.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\21c8b534\\60cca60f_1f92cf01\\Castle.Core.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\28a3025a\\10087044_0896cf01\\MapStores.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\a137cbd9\\253adc44_0896cf01\\HBaseMapStore.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\07c00fd2\\f8f7a644_0896cf01\\MQProcessing.MQPutService.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\bae09939\\c8a9ee66_fc99cf01\\CStore.Data.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\a22b9b5d\\688b1868_fc99cf01\\CSPoll.Client.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\30e797f5\\2901ac44_0896cf01\\CStore.Common.HTTP.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Net.Http\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Net.Http.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\4590d591\\2f177866_fc99cf01\\DeviceConfig.Client.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\247d65ee\\763b5c67_fc99cf01\\CStore.Client.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\f5f7b992\\7e1ebf67_fc99cf01\\CStore.BusinessObjects.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\c8d39645\\9db0b068_fc99cf01\\MQProcessingWCFServices.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\6a87a030\\23c15269_fc99cf01\\HHS.API.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\ba0add0f\\0aa77e66_fc99cf01\\CStore.Data.Legacy.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\82c78164\\30882368_fc99cf01\\CStore.BusinessObjects.HHS.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载匿名运行
  DynamicMethods大会'vstest.executionengine.x86.exe(CLR
  v4.0.30319:测试域HHS.Web.Tests.dll):卸载
  CastleDictionaryAdapterAssembly'vstest.executionengine.x86.exe
  (CLR v4.0.30319:测试域HHS.Web.Tests.dll):卸载
  'C:\\Users\\clay\\AppData\\Local\\Temp\
unit20\\ShadowCopyCache\\10796_635403224540977618\\Tests_5885246\\assembly\\dl3\\ac0d956f\\b951e91a_1f92cf01\\Newtonsoft.Json.dll'
  vstest.executionengine.x86.exe(CLR v4.0.30319:
  测试域HHS.Web.Tests.dll):卸载
  'C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Net.Http.WebRequest\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Net.Http.WebRequest.dll'
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.UnauthorizedAccessException的'发生在mscorlib.dll第一
  类型'System.IO.IOException'的机会异常出现在
  MSCORLIB.DLL类型的第一次机会异常'System.IO.IOException'
  发生在类型的mscorlib.dll中的第一个机会异常
  System.UnauthorizedAccessException的'发生在mscorlib.dll第一
  类型'System.IO.IOException'的机会异常出现在
  MSCORLIB.DLL类型的第一次机会异常'System.IO.IOException'
  发生在类型的mscorlib.dll中的第一个机会异常
  System.UnauthorizedAccessException的'发生在mscorlib.dll第一
  发生类型System.UnauthorizedAccessException的'的机会异常
  在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型的第一次机会异常System.UnauthorizedAccessException的
  发生在类型的mscorlib.dll中的第一个机会异常
  System.UnauthorizedAccessException的'发生在mscorlib.dll第一
  类型'System.IO.IOException'的机会异常出现在
  MSCORLIB.DLL类型的第一次机会异常'System.IO.IOException'
  发生在类型的mscorlib.dll中的第一个机会异常
  System.IO.IOExceptionmscorlib.dll中发生第一次机会
  类型'System.IO.IOException'的异常出现在mscorlib.dll中一
  类型'System.IO.IOException'第一次机会异常出现在
  MSCORLIB.DLL类型的第一次机会异常'System.IO.IOException'
  mscorlib.dll中发生线程0x1050已退出与code 259
  (0x103)。线程0x24a0已退出与code 259(0x103)。第一
  发生'System.InvalidOperationException'类型的机会异常
  在Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll第一
  类型的机会异常
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.dll类型的第一次机会异常
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.dll类型的第一次机会异常
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.Internals.dll类型的第一次机会异常
  System.IO.IOException发生在System.dll中第一次机会
  类型的例外
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.dll类型的第一次机会异常
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.dll类型的第一次机会异常
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.Internals.dll类型的第一次机会异常
  System.ServiceModel.CommunicationObjectAbortedException发生在
  System.ServiceModel.Internals.dll类型的第一次机会异常
  System.InvalidOperationException发生在
  Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll程序
  [10796] vstest.executionengine.x86.exe:程序跟踪已退出
  与code 0(为0x0)。该方案[10796]
  vstest.executionengine.x86.exe已退出与code 0(为0x0)。



解决方案

如果断点未命中,那么调试器没有连接(或不执行code)。我建议你​​使用 NUnit测试适配器为Visual Studio。它可以让你在原地调试试验权 - 只需选择测试,并选择的调试选定的测试的上下文菜单

另一种选择 - 你可以的连接调试来NUnit的图形用户界面和使用过程的 Debugger.Break() 测试code。

I have several NUnit tests in a test project that is part of a solution. I have a breakpoint in each test method. A "typical" one of these methods is:

public void TestHHSInterface()
{
    var HHSClient = IOC.container.Resolve<IHHSClient>();

    var s = HHSClient.GetTestMessage("Duckbilled", "Platypus");

    Assert.Greater(s.Value.Length, 0);
}

The tests run, as evidenced by what I see here:

Is this normal that breakpoints are not hit? It seems that they are running, but that the results (passed 3, failed 0) are not really valid, because I added test code that SHOULD fail, yet no matter what, the tests "succeed."

What am I doing wrong, or omitting here?

UPDATE

Okay, I downloaded/installed NUnit Test Adapter, right-clicked the test shown above, and selected "Debug Tests"

My breakpoint was hit, and I was able to step over the first line, but then it blew up; this is what I see in the Output pane (I know this is probably "TMI," but I don't know what's pertinent and what is not - I cut out the middle, as my post was too long):

'vstest.executionengine.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\vstest.executionengine.x86.exe'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\Microsoft.VisualStudio.TestPlatform.ObjectModel.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\Microsoft.VisualStudio.TestPlatform.Core.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded . . . .

'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\msdia120typelib_clr0200.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\62b76a75\bbee3246_019acf01\CStore.Integration.Tests.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\8379df6f\6a4e7a10_1f92cf01\Castle.Windsor.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\4c09b93f\71022b68_fc99cf01\HHS.Client.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\d29638a9\7a8b1a66_fc99cf01\CStore.DomainModels.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\3926c47b\2e2ff20f_1f92cf01\Castle.Facilities.FactorySupport.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\e881bc9e\8fb83744_0896cf01\CStore.Common.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\21c8b534\60cca60f_1f92cf01\Castle.Core.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\28a3025a\10087044_0896cf01\MapStores.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\a137cbd9\253adc44_0896cf01\HBaseMapStore.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\07c00fd2\f8f7a644_0896cf01\MQProcessing.MQPutService.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\bae09939\c8a9ee66_fc99cf01\CStore.Data.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\a22b9b5d\688b1868_fc99cf01\CSPoll.Client.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\30e797f5\2901ac44_0896cf01\CStore.Common.HTTP.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\4590d591\2f177866_fc99cf01\DeviceConfig.Client.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\247d65ee\763b5c67_fc99cf01\CStore.Client.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\f5f7b992\7e1ebf67_fc99cf01\CStore.BusinessObjects.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\c8d39645\9db0b068_fc99cf01\MQProcessingWCFServices.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\6a87a030\23c15269_fc99cf01\HHS.API.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\ba0add0f\0aa77e66_fc99cf01\CStore.Data.Legacy.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\82c78164\30882368_fc99cf01\CStore.BusinessObjects.HHS.dll'. Symbols loaded. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'CastleDictionaryAdapterAssembly'. The thread 0x27f4 has exited with code 259 (0x103). The thread 0xaa4 has exited with code 259 (0x103). The thread 0x1c70 has exited with code 259 (0x103). The thread 0x2578 has exited with code 259 (0x103). 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\ac0d956f\b951e91a_1f92cf01\Newtonsoft.Json.dll'. Cannot find or open the PDB file. 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http.WebRequest\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.WebRequest.dll'. Cannot find or open the PDB file. A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll A first chance exception of type 'System.Net.WebException' occurred in System.dll A first chance exception of type 'System.AggregateException' occurred in mscorlib.dll A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll A first chance exception of type 'System.Exception' occurred in HHS.Client.dll A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll A first chance exception of type 'NUnit.Core.NUnitException' occurred in nunit.core.dll The thread 0x2128 has exited with code 259 (0x103). The thread 0x28a0 has exited with code 259 (0x103). The thread 0x29d8 has exited with code 259 (0x103). 'vstest.executionengine.x86.exe' (CLR v4.0.30319: Domain 2): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.interfaces.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\0501e887\ab9f7e46_019acf01\HHS.Web.Tests.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\768b7768\f8a3911b_1f92cf01\nunit.framework.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\62b76a75\bbee3246_019acf01\CStore.Integration.Tests.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\8379df6f\6a4e7a10_1f92cf01\Castle.Windsor.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\4c09b93f\71022b68_fc99cf01\HHS.Client.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\d29638a9\7a8b1a66_fc99cf01\CStore.DomainModels.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\3926c47b\2e2ff20f_1f92cf01\Castle.Facilities.FactorySupport.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\e881bc9e\8fb83744_0896cf01\CStore.Common.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\21c8b534\60cca60f_1f92cf01\Castle.Core.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\28a3025a\10087044_0896cf01\MapStores.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\a137cbd9\253adc44_0896cf01\HBaseMapStore.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\07c00fd2\f8f7a644_0896cf01\MQProcessing.MQPutService.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\bae09939\c8a9ee66_fc99cf01\CStore.Data.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\a22b9b5d\688b1868_fc99cf01\CSPoll.Client.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\30e797f5\2901ac44_0896cf01\CStore.Common.HTTP.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\4590d591\2f177866_fc99cf01\DeviceConfig.Client.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\247d65ee\763b5c67_fc99cf01\CStore.Client.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\f5f7b992\7e1ebf67_fc99cf01\CStore.BusinessObjects.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\c8d39645\9db0b068_fc99cf01\MQProcessingWCFServices.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\6a87a030\23c15269_fc99cf01\HHS.API.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\ba0add0f\0aa77e66_fc99cf01\CStore.Data.Legacy.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\82c78164\30882368_fc99cf01\CStore.BusinessObjects.HHS.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'Anonymously Hosted DynamicMethods Assembly' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'CastleDictionaryAdapterAssembly' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\10796_635403224540977618\Tests_5885246\assembly\dl3\ac0d956f\b951e91a_1f92cf01\Newtonsoft.Json.dll' 'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http.WebRequest\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.WebRequest.dll' A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll The thread 0x1050 has exited with code 259 (0x103). The thread 0x24a0 has exited with code 259 (0x103). A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.Internals.dll A first chance exception of type 'System.IO.IOException' occurred in System.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.Internals.dll A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.Internals.dll A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll The program '[10796] vstest.executionengine.x86.exe: Program Trace' has exited with code 0 (0x0). The program '[10796] vstest.executionengine.x86.exe' has exited with code 0 (0x0).

解决方案

If breakpoints are not hit, then debugger is not attached (or code is not executed). I suggest you to use NUnit test adapter for Visual Studio. It will allow you to debug test right in place - just select test and chose Debug selected test in context menu.

Another option - you can attach debugger to NUnit GUI process and use Debugger.Break() in test code.

这篇关于为什么在测试中没有命中断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆