Exemple #1
0
        public static void ReRun(Isolations isolation, bool attachDebugger = false)
        {
            MethodBase methodInfo            = new StackTrace().GetFrame(1).GetMethod();
            var        testMethodInformation = new TestMethodInformation(methodInfo, attachDebugger);

            IsolationDispatcher.IsolateTestRun(isolation, testMethodInformation);
        }
        public static void IsolateTestRun(Isolations isolation, TestMethodInformation testMethodInformation)
        {
            if (IsInIsolatedAppDomain)
                return;

            switch (isolation)
            {
                case Isolations.AppDomain:
                    AppDomainRunner.Run(testMethodInformation, true);
                    break;
                case Isolations.Process:
                    ProcessRunner.Run(testMethodInformation);
                    break;

                default:
                    throw new ArgumentOutOfRangeException();
            }
            Assert.Pass();
        }
Exemple #3
0
        public static void IsolateTestRun(Isolations isolation, TestMethodInformation testMethodInformation)
        {
            if (IsInIsolatedAppDomain)
            {
                return;
            }

            switch (isolation)
            {
            case Isolations.AppDomain:
                AppDomainRunner.Run(testMethodInformation, true);
                break;

            case Isolations.Process:
                ProcessRunner.Run(testMethodInformation);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
            Assert.Pass();
        }
 public static void ReRun(Isolations isolation, bool attachDebugger = false)
 {
     MethodBase methodInfo = new StackTrace().GetFrame(1).GetMethod();
     var testMethodInformation = new TestMethodInformation(methodInfo, attachDebugger);
     IsolationDispatcher.IsolateTestRun(isolation, testMethodInformation);
 }
 public IsolationAttribute(Isolations isolation, bool attachDebugger = false)
 {
     mIsolation = isolation;
     mAttachDebugger = attachDebugger;
 }
Exemple #6
0
 public IsolationAttribute(Isolations isolation, bool attachDebugger = false)
 {
     mIsolation      = isolation;
     mAttachDebugger = attachDebugger;
 }