【发布时间】:2017-12-21 12:26:51
【问题描述】:
我编写了这个 helloworld 单元测试并构建它。它总是有这个构建错误:“The command://...../Nunit.ConsoleRunner3.6/nunit3-console.exe exited with code 1”。我搜索了所有的 stackoverflow,但没有一个关于 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");
}
}
}
【问题讨论】:
标签: c# visual-studio unit-testing nunit nunit-console