Пример #1
0
        private async Task ExecuteTestsAync()
        {
            Running = true;
            Results = null;

            var runner = new NUnitTestAssemblyRunner(new DefaultTestAssemblyBuilder());
            foreach(var testAssembly in _testAssemblies)
                runner.Load(testAssembly, new Dictionary<string, string>());

            ITestResult result = await Task.Run(() => runner.Run(TestListener.NULL, TestFilter.Empty));
            Results = new ResultSummary(result);

            Running = false;
        }
Пример #2
0
        async Task ExecuteTestsAync()
        {
            Running = true;
            Results = null;

            var runner = await LoadTestAssembliesAsync();

            ITestResult result = await Task.Run(() => runner.Run(TestListener.NULL, TestFilter.Empty));
            Results = new ResultSummary(result);

            Running = false;
        }