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(); }
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 }; }
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"); }; }
public void UseTeamCityListener() { _listener = new TeamCityTestListener(); }
public void RemoveObserver(ITestObserver testObserver) { ObserverList.Remove(testObserver); }
public void AddObserver(ITestObserver testObserver) { ObserverList.Add(testObserver); }