Example #1
0
        public void CoreClassCleanup()
        {
            var testClassType = GetCurrentExecutionTestClassType();

            Container = ServicesCollection.Current.FindCollection(testClassType.FullName);
            _currentTestExecutionProvider = new PluginProvider();
            InitializeTestExecutionBehaviorObservers(_currentTestExecutionProvider);

            try
            {
                _currentTestExecutionProvider.PreClassCleanup(testClassType);
                TestsCleanup();
                _currentTestExecutionProvider.PostClassCleanup(testClassType);
            }
            catch (Exception ex)
            {
                _currentTestExecutionProvider.TestsCleanupFailed(ex);
                throw;
            }
        }