Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }