Esempio n. 1
0
        /// <summary>
        /// Fires this instance.
        /// </summary>
        /// <returns></returns>
        public IEnumerable <TestExecutionResult> Fire()
        {
            List <TestExecutionResult> result = new List <TestExecutionResult>();

            _reporter.Initialize();

            foreach (var suite in _testSuites)
            {
                _reporter.NewTestSuite(suite.Name);
                foreach (var testCase in suite.TestCases)
                {
                    result.Add(_runtime.Execute(testCase));
                }
            }

            _reporter.End();
            _driver.Close();

            return(result);
        }