我有一个非常简单的测试!
[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.9和NUnit 测试适配器 3.1。我确实做了谷歌搜索并得到了相互矛盾的答案。我错过了什么吗?