【发布时间】:2017-07-25 18:00:37
【问题描述】:
我经常想进行快速测试,并在 LINQPad 中编写代码。
所以我有一个Main() 入口点。我可以让 NUnit 从那里以编程方式“运行”一个夹具吗?
using NUnit.Framework;
public class Runner
{
public static void Main()
{
//what do I do here?
}
[TestFixture]
public class Foo
{
[Test]
public void TestSomething()
{
// test something
}
}
}
【问题讨论】: