public void Explore() { var result = _runner.Explore(TestFilter.Empty); Assert.That(result.Name, Is.EqualTo("test-run")); Assert.That(result.GetAttribute("testcasecount", 0), Is.EqualTo(MockAssembly.Tests)); var suite = result.SelectSingleNode("test-suite"); Assert.NotNull(suite, "No suite found"); Assert.That(suite.GetAttribute("testcasecount", 0), Is.EqualTo(MockAssembly.Tests)); Assert.That(suite.GetAttribute("runstate"), Is.EqualTo("Runnable")); }
public static XmlNode LoadModule(string path) { var services = CreateServices(path); using (var serviceManager = services.ServiceManager) { serviceManager.StartServices(); XmlNode result; using (ITestRunner runner = new MasterTestRunner(services, CreatePackage(path))) result = runner.Explore(TestFilter.Empty); serviceManager.StopServices(); return(result); } }