c# 极易单元测试错误

c# extremely easy unit test error

我编写并构建了这个 helloworld 单元测试。它总是有这个构建错误:“The command://...../Nunit.ConsoleRunner3.6/nunit3-console.exe exited with code 1”。我搜索了所有的计算器,但是没有一个关于 Nunit 测试存在代码 1 的线程,你知道我在哪里可以找到这个代码的信息吗?

using NUnit.Framework;

namespace SomeName
{
    [TestFixture]
    class IdentifierTest
    {
        [SetUp]
        public void SetUp()
        {

        }

        [TearDown]
        public void TearDown()
        {

        }

        [Test]
        public void DetectIDTest()
        {     
            Assert.AreEqual("hi","ho");
        }
    }
}

根据 this line in the NUnit console runner source code. Additional (negative) failure codes also have meaning per these six lines. This is substantiated by a discussion about exit codes here,正退出代码表示失败的测试数(在您的情况下为 1),我已将响应作为图像附上以供参考