Ejemplo n.º 1
0
        private void InitializeClassCleanupManager(
            string source,
            UnitTestRunner testRunner,
            ICollection <TestCase> testsToRun,
            TestAssemblySettings sourceSettings)
        {
            var unitTestElements = testsToRun.Select(e => e.ToUnitTestElement(source)).ToArray();

            testRunner.InitializeClassCleanupManager(unitTestElements, sourceSettings.ClassCleanupLifecycle);
        }
Ejemplo n.º 2
0
 private void InitializeClassCleanupManager(string source, UnitTestRunner testRunner, ICollection <TestCase> testsToRun, TestAssemblySettings sourceSettings)
 {
     try
     {
         var unitTestElements = testsToRun.Select(e => e.ToUnitTestElement(source)).ToArray();
         testRunner.InitializeClassCleanupManager(unitTestElements, (int)sourceSettings.ClassCleanupLifecycle);
     }
     catch (Exception ex)
     {
         // source might not support this if it's legacy make sure it's supported by checking for the type
         if (ex.GetType().FullName != "System.Runtime.Remoting.RemotingException")
         {
             throw;
         }
     }
 }