Esempio n. 1
0
 private IAutoTestNetTestRunner getRunner(Plugin plugin)
 {
     try
     {
         return plugin.New();
     }
     catch (Exception ex)
     {
         _results.Add(ErrorHandler.GetError(plugin.Type, ex));
     }
     return null;
 }
Esempio n. 2
0
 public IEnumerable<TestResult> Run(Plugin plugin, RunSettings options)
 {
     return plugin.New().Run(options);
 }
Esempio n. 3
0
 public void SetUp()
 {
     int a = 3;
     _plugin = new Plugin(typeof(Runner).Assembly.Location, typeof(Runner).FullName);
     _runner = _plugin.New();
 }
 private RunnerOptions getTests(Plugin plugin, TestRunInfo[] runInfos)
 {
     var instance = plugin.New();
     if (instance == null)
         return null;
     var infos = runInfos.Where(x => instance.ContainsTestsFor(x.Assembly));
     if (infos.Count() == 0)
         return null;
     return getRunnerOptions(infos, instance);
 }