示例#1
0
 public SessionResults RunAssembly(Assembly assembly)
 {
     var sessionResults = new SessionResults();
     var logger = new GilesXunitLogger();
     using (var exWrapper = new XunitFx.ExecutorWrapper(new Uri(assembly.CodeBase).LocalPath, null, false)) {
         var runner = new XunitFx.TestRunner(exWrapper, logger);
         var result = runner.RunAssembly();
     }
     return logger.SessionResults;
 }
示例#2
0
        public SessionResults RunAssembly(Assembly assembly)
        {
            var sessionResults = new SessionResults();
            var logger         = new GilesXunitLogger();

            using (var exWrapper = new XunitFx.ExecutorWrapper(new Uri(assembly.CodeBase).LocalPath, null, false)) {
                var runner = new XunitFx.TestRunner(exWrapper, logger);
                var result = runner.RunAssembly();
            }
            return(logger.SessionResults);
        }
示例#3
0
        public SessionResults RunAssembly(Assembly assembly, IEnumerable<string> filters)
        {
            var logger = new GilesXunitLogger();

            using (var exWrapper = new XunitFx.ExecutorWrapper(new Uri(assembly.CodeBase).LocalPath, null, false)) {
                var runner = new XunitFx.TestRunner(exWrapper, logger);
                if (filters.Count() == 0)
                    runner.RunAssembly();
                else
                    filters.Each(x => runner.RunClass(x));
            }

            return logger.SessionResults;
        }
示例#4
0
        public SessionResults RunAssembly(Assembly assembly, IEnumerable <string> filters)
        {
            var logger = new GilesXunitLogger();

            using (var exWrapper = new XunitFx.ExecutorWrapper(new Uri(assembly.CodeBase).LocalPath, null, false))
            {
                var runner = new XunitFx.TestRunner(exWrapper, logger);
                if (filters.Count() == 0)
                {
                    runner.RunAssembly();
                }
                else
                {
                    filters.Each(x => runner.RunClass(x));
                }
            }

            return(logger.SessionResults);
        }