/// <summary> /// Initializes a new instance of the <see cref="TestExecutionContext"/> class. /// </summary> /// <param name="other">An existing instance of TestExecutionContext.</param> public TestExecutionContext(TestExecutionContext other) { this.prior = other; this.tracing = other.tracing; //this.logging = other.logging; this.outWriter = other.outWriter; this.errorWriter = other.errorWriter; this.traceWriter = other.traceWriter; this.logCapture = other.logCapture; this.testCaseTimeout = other.testCaseTimeout; this.currentTest = other.currentTest; this.currentResult = other.currentResult; this.testPackage = other.testPackage; this.currentDirectory = Environment.CurrentDirectory; this.currentCulture = CultureInfo.CurrentCulture; this.currentUICulture = CultureInfo.CurrentUICulture; this.currentPrincipal = Thread.CurrentPrincipal; this.contextDictionary = new ContextDictionary(this); }
/// <summary> /// Initializes a new instance of the <see cref="TestExecutionContext"/> class. /// </summary> public TestExecutionContext() { this.prior = null; this.tracing = false; //this.logging = false; this.outWriter = Console.Out; this.errorWriter = Console.Error; this.traceWriter = null; this.logCapture = new Log4NetCapture(); this.testCaseTimeout = 0; this.currentDirectory = Environment.CurrentDirectory; this.currentCulture = CultureInfo.CurrentCulture; this.currentUICulture = CultureInfo.CurrentUICulture; this.currentPrincipal = Thread.CurrentPrincipal; this.contextDictionary = new ContextDictionary(this); }