Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #3
0
 public TestLogger(TestLoggerBackend backend)
 {
     this.backend = backend;
 }
Beispiel #4
0
 public TestLogger(TestLoggerBackend backend)
 {
     Backend = backend.CreateSynchronized();
 }
Beispiel #5
0
 public SynchronizedBackend(TestLoggerBackend backend)
 {
     Backend = backend;
 }
Beispiel #6
0
 public TestResultBackend(TestResult result, TestLoggerBackend parent = null)
 {
     Result = result;
     Parent = parent;
 }