Exemplo n.º 1
0
        internal TestRun(TestExecutionRequest request, IFixtureContainerSource fetchContainer, ITestObserver listener,
            FixtureLibrary library, SystemLifecycle lifecycle)
        {
            _request = request;
            _fetchContainer = fetchContainer;
            _listener = listener;
            _library = library;
            _lifecycle = lifecycle;

            _result = new TestResult();
        }
Exemplo n.º 2
0
        internal TestRun(TestExecutionRequest request, IFixtureContainerSource fetchContainer, ITestObserver listener,
                         FixtureLibrary library, SystemLifecycle lifecycle)
        {
            _request        = request;
            _fetchContainer = fetchContainer;
            _listener       = listener;
            _library        = library;
            _lifecycle      = lifecycle;

            _result = new TestResult();
        }
Exemplo n.º 3
0
        internal TestRun(TestExecutionRequest request, ITestObserver listener, FixtureLibrary library, ISystem system)
        {
            _request = request;
            _listener = listener;
            _library = library;
            _system = system;

            _result = new TestResult
            {
                RetryAttemptNumber = request.Test.RetryAttemptNumber
            };
        }
Exemplo n.º 4
0
        public TestContext(IContainer container, Test test, ITestObserver listener)
        {
            _container = container;
            _test      = test;
            _listener  = listener;
            _container.Inject <ITestContext>(this);
            _container.Inject(test);

            _container.Configure(x =>
            {
                x.For <IFixture>().AlwaysUnique();
                x.For <IFixtureContext>().Use(this);
                x.SetAllProperties(o => o.OfType <IFixtureContext>());
            });

            Finder = new ObjectFinder();

            StartupActionNames = new string[0];

            BackupResolver = t =>
            {
                throw new ApplicationException("This service is not registered");
            };
        }
Exemplo n.º 5
0
 public void UseTeamCityListener()
 {
     _listener = new TeamCityTestListener();
 }
Exemplo n.º 6
0
 public void UseTeamCityListener()
 {
     _listener = new TeamCityTestListener();
 }
Exemplo n.º 7
0
 public void RemoveObserver(ITestObserver testObserver)
 {
     ObserverList.Remove(testObserver);
 }
Exemplo n.º 8
0
 public void AddObserver(ITestObserver testObserver)
 {
     ObserverList.Add(testObserver);
 }