public ServerDisasterRecoveryConfigurationTests(ITestOutputHelper output) { var logger = new XunitTracingInterceptor(output); XunitTracingInterceptor.AddToContext(new XunitTracingInterceptor(output)); helper.TracingInterceptor = logger; }
public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts) { var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); this.helper.TracingInterceptor = logger; this.RunPsTestWorkflow( () => scripts, // no custom initializer null, // no custom cleanup null, callingClassType, mockName); }
public void RunPsTest(XunitTracingInterceptor logger, params string[] scripts) { var callingClassType = TestUtilities.GetCallingClass(2); var mockName = TestUtilities.GetCurrentMethodName(2); logger.Information(string.Format("Test method entered: {0}.{1}", callingClassType, mockName)); helper.TracingInterceptor = logger; RunPsTestWorkflow( () => scripts, // no custom initializer null, // no custom cleanup null, callingClassType, mockName); logger.Information(string.Format("Test method finished: {0}.{1}", callingClassType, mockName)); }
public WebServiceTests(ITestOutputHelper output) { this.interceptor = new XunitTracingInterceptor(output); XunitTracingInterceptor.AddToContext(this.interceptor); }
public void RunPsTest(XunitTracingInterceptor traceInterceptor, params string[] scripts) { helper.TracingInterceptor = traceInterceptor; RunPsTest(scripts); }
public CommitmentPlanTests(ITestOutputHelper output) { this.interceptor = new XunitTracingInterceptor(output); XunitTracingInterceptor.AddToContext(this.interceptor); }
public void RunPsTestWorkflow( XunitTracingInterceptor interceptor, Func<string[]> scriptBuilder, Action<LegacyTest.CSMTestEnvironmentFactory> initialize, Action cleanup, string callingClassType, string mockName) { helper.TracingInterceptor = interceptor; this.RunPsTestWorkflow(scriptBuilder, initialize, cleanup, callingClassType, mockName); }
public ActiveDirectoryTests(ITestOutputHelper output) { interceptor = new XunitTracingInterceptor(output); XunitTracingInterceptor.AddToContext(interceptor); }
public SubscriptionCmdletTests(ITestOutputHelper output) { xunitLogger = new XunitTracingInterceptor(output); }
public static void RemoveFromContext(XunitTracingInterceptor interceptor) { try { TracingAdapter.RemoveTracingInterceptor(interceptor); } catch { // Ignore } }
public static void AddToContext(XunitTracingInterceptor interceptor) { RemoveFromContext(interceptor); TracingAdapter.AddTracingInterceptor(interceptor); }
public CognitiveServicesAccountTests(ITestOutputHelper output) { this.traceInterceptor = new XunitTracingInterceptor(output); XunitTracingInterceptor.AddToContext(this.traceInterceptor); }