public TestRunState RunNamespace(ITestListener testListener, Assembly assembly, string ns)
        {
            var listener = new TDNetRunListener(testListener);
            var runner   = new AppDomainRunner(listener, RunOptions.Default);

            runner.RunNamespace(assembly, ns);

            return(listener.TestRunState);
        }
示例#2
0
 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);
 }