TestContext(TestContext parent, TestPath path, TestResult result) { this.parent = parent; this.result = result; CurrentPath = path; if (result != null) { logger = new TestLogger(TestLoggerBackend.CreateForResult(result, parent.logger)); } else { logger = parent.logger; } config = parent.config; }
TestContext(TestContext parent, TestName name, ITestPathInternal path, TestResult result) { Name = name; this.parent = parent; this.path = path; this.result = result; if (result != null) { logger = new TestLogger(TestLoggerBackend.CreateForResult(result, parent.logger)); } else { logger = parent.logger; } config = parent.config; }