Beispiel #1
0
 public SessionResults RunAssembly(Assembly assembly)
 {
     var runListener = new GilesMSpecRunListener();
     var runner = new AppDomainRunner(runListener, RunOptions.Default);
     runner.RunAssembly(assembly);
     return runListener.SessionResults;
 }
    public TestRunState RunAssembly(ITestListener testListener, Assembly assembly)
    {
      var listener = new TDNetRunListener(testListener);
      var runner = new AppDomainRunner(listener, RunOptions.Default);
      runner.RunAssembly(assembly);

      return listener.TestRunState;
    }
Beispiel #3
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);
 }