c# – UWP应用程序的单元测试无法在Visual Studio 2015上运行

c# – UWP应用程序的单元测试无法在Visual Studio 2015上运行,第1张

概述我在我的一台机器上运行单元测试时遇到问题,测试应用程序几秒后才关闭.以下是调试测试时的输出显示: Exception thrown at 0x7525D8A8 in UnitTestProject1.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0A17C5F0. Exception thrown at 我在我的一台机器上运行单元测试时遇到问题,测试应用程序几秒后才关闭.以下是调试测试时的输出显示:

Exception thrown at 0x7525D8A8 in UnitTestProject1.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x0A17C5F0.

Exception thrown at 0x7525D8A8 in UnitTestProject1.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

Exception thrown at 0x7525D8A8 (KernelBase.dll) in UnitTestProject1.exe: 0x40080201: WinRT originate error (parameters: 0x8007274C,0x000000B9,0x0EE4F6AC).

Exception thrown: ‘System.Exception’ in mscorlib.ni.dll

WinRT information: A connection attempt Failed because the connected party dID not properly respond after a period of time,or established connection Failed because connected host has Failed to respond.

Exception thrown: ‘System.Net.sockets.socketException’ in System.Private.ServiceModel.dll

Exception thrown: ‘System.Net.sockets.socketException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in System.Private.ServiceModel.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.ServiceModel.EndpointNotFoundException’ in mscorlib.ni.dll

Exception thrown: ‘System.Reflection.TargetInvocationException’ in mscorlib.ni.dll

这些例外根本与我的应用程序无关,因为我的应用程序不需要互联网,并且未达到测试方法中的代码.它们来自测试框架.

相同的解决方案在每台其他计算机上运行测试(同样的Windows 10版本).我认为问题在于故障机器上的系统关闭了单元测试所需的一些服务.我找不到任何相关的东西.我该怎么做才能解决这个问题,我不想重新安装windows.

解决方法 似乎无法建立与Test Emulator的连接.构建TestApp时,请确保已将Build配置设置为DeBUG – 任何cpu(不是ARM) 此外,您不应该通过按F5运行测试项目,而是从TestExplorer运行测试. 总结

以上是内存溢出为你收集整理的c# – UWP应用程序的单元测试无法在Visual Studio 2015上运行全部内容,希望文章能够帮你解决c# – UWP应用程序的单元测试无法在Visual Studio 2015上运行所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1226721.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-05
下一篇2022-06-05

发表评论

登录后才能评论

评论列表(0条)

    保存