[英]XUnit tests don't run (endless loop)
I have a "EMPTY" "[Fact]" / UnitTest method that doesn't run. 我有一个“空”“ [事实]” / UnitTest方法无法运行。
Click run all tests or try to debug and the green progress bar at the top in VS just keeps doing it waiting green pan. 单击“运行所有测试”或尝试进行调试,VS顶部的绿色进度栏将一直保持绿色等待状态。 I have tried deleting all NuGet packages, clean builds etc.
我尝试删除所有NuGet软件包,清理构建等。
Is there some other cache folder I could try deleting? 我可以尝试删除其他缓存文件夹吗? This is road blocking me.
这阻碍了我。
Example: 例:
using System;
using Xunit;
namespace Audio.Test
{
public class Test_AudioSystem
{
[Fact]
public void GetAllAudioDevices()
{
// does nothing...
}
}
}
Ok found the issue. 确定找到了问题。 Have Newtonsoft.Json.dll from a .NET Framework project in the same directory as my test libraries.
将.NET Framework项目中的Newtonsoft.Json.dll与我的测试库放在同一目录中。 This is somehow causing an endless loop.
这在某种程度上导致了无限循环。 The question is does this bug happen with a .NET Core version of Newtonsoft.
问题是,此错误是否在Newtonsoft的.NET Core版本中发生。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.