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(); }
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 IsolationAttribute(Isolations isolation, bool attachDebugger = false) { mIsolation = isolation; mAttachDebugger = attachDebugger; }