public TestRunState RunMember(ITestListener testListener, Assembly assembly, MemberInfo member) { var listener = new TDNetRunListener(testListener); var runner = new AppDomainRunner(listener, RunOptions.Default); runner.RunMember(assembly, member); return listener.TestRunState; }
private void runTests(RunSettings settings, Assembly assembly, AppDomainRunner runner) { if (runAllTests(settings)) { runner.RunAssembly(assembly); return; } foreach (var member in settings.Assembly.Tests) runner.RunMember(assembly, assembly.GetType(member)); foreach (var member in settings.Assembly.Members) runner.RunMember(assembly, assembly.GetType(member)); foreach (var ns in settings.Assembly.Namespaces) runner.RunNamespace(assembly, ns); }