I often want to perform a quick test, and code it up in LINQPad.
So I have a Main()
entry point. Can I make NUnit "run" a fixture programmatically from there?
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
}
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…