相关疑难解决方法(0)

.NET Core 是否与 NUnit 控制台运行器一起使用?

我有一个非常简单的测试!

[Test]
public void TestMethod1()
{
    Assert.IsTrue(false);
}
Run Code Online (Sandbox Code Playgroud)

当我尝试使用 nunit3-console.exe 运行它时,出现以下错误。

NUnit.Engine.NUnitEngineException :NUnit 3 驱动程序在执行反射代码时遇到错误。----> System.InvalidCastException:无法将透明代理转换为类型“System.Web.UI.ICallbackEventHandler”。--NUnitEngineException

我正在运行 .NET Core 2.1,带有NUnit Console Runner 3.9NUnit 测试适配器 3.1。我确实做了谷歌搜索并得到了相互矛盾的答案。我错过了什么吗?

nunit .net-core

8
推荐指数
1
解决办法
5534
查看次数

标签 统计

.net-core ×1

nunit ×1