1
如何以編程方式決定在NUnit中運行哪些測試?即使用NUnit類別屬性在dll中運行某些測試?
CoreExtensions.Host.InitializeService();
TestPackage testPackage = new TestPackage(pathToSomeDLL);
// filter by category here??
SimpleTestRunner simpleTestRunner = new SimpleTestRunner();
// or here?
simpleTestRunner.Load(testPackage);
//... maybe here?
testResult = simpleTestRunner.Run(NullListener.NULL);