Exemple #1
0
 public IEnumerable<TestResult> Run(RunSettings settings)
 {
     var runner = new NUnitRunner();
     runner.Initialize();
     var parser = new NUnitOptionsParser(settings);
     parser.Parse();
     var results = new List<TestResult>();
     foreach (var option in parser.Options)
         results.AddRange(runner.Execute(option));
     return results;
 }
Exemple #2
0
        public IEnumerable <TestResult> Run(RunSettings settings)
        {
            var runner = new NUnitRunner(_channel);

            runner.Initialize();
            var parser = new NUnitOptionsParser(settings);

            parser.Parse();
            var results = new List <TestResult>();

            foreach (var option in parser.Options)
            {
                results.AddRange(runner.Execute(option));
            }
            return(results);
        }