相关疑难解决方法(0)

在VS2015上使用xUnit测试UWP应用程序

我已经设法在VS2015上创建一个xUnit项目来对UWP应用进行单元测试.这里有关于stackoverflow这个问题的背景知识,它给出了这个问题的一些背景.

我可以编译并运行测试,但是当我引用要测试的项目时,会出现以下错误.

------ Run test started ------
Updating the layout...

Checking whether required frameworks are installed...

Registering the application to run from layout...

Deployment complete (1857ms). Full package name: "8f4533e5-fec8-415b-94ab-6bce6b37374f_1.0.0.0_x86__5gyrq6psz227t"

A user callback threw an exception.  Check the exception stack and inner exception to determine the callback that failed.
========== Run test finished: 0 run (0:00:04.3378913) ==========
Run Code Online (Sandbox Code Playgroud)

我理解引用的项目(将进行单元测试)导致a user callback threw an exception但我没有看到调试此错误的明显方法.执行模式看起来不像可以使用断点检查的普通调试.

有谁知道如何深入研究并找出导致a user callback threw an exception错误的原因?要测试的应用程序项目没有错误,并且可以自行运行.

c# unit-testing xunit.net visual-studio-2015 uwp

3
推荐指数
1
解决办法
900
查看次数

标签 统计

c# ×1

unit-testing ×1

uwp ×1

visual-studio-2015 ×1

xunit.net ×1