protected override void Before_each_spec() { _messageProvider = Mocks.StrictMock<ITeamCityMessageProvider>(); _sut = new TeamCityRunListener(_messageProvider); _assemblyInfo = new AssemblyInfo("Assembly"); }
List<ISpecificationRunListener> SetUpListeners() { List<ISpecificationRunListener> result = new List<ISpecificationRunListener>(); string reportPath = Path.Combine(ReportDirectory, ReportFilename); if (!String.IsNullOrEmpty(reportPath)) { GenerateHtmlReportRunListener htmlReport = new GenerateHtmlReportRunListener(reportPath, IncludeTimeInfo); result.Add(htmlReport); } if (BuildEnvironment.IsTeamCityBuild) { TeamCityRunListener teamCity = new TeamCityRunListener(IoC.Resolve<ITeamCityMessageProvider>(new { taskToUseForLogging = this })); result.Add(teamCity); } return result; }
protected override void Before_each_spec() { _specificationInfo = new SpecificationInfo("Spec", "Type"); _messageProvider = Mocks.DynamicMock<ITeamCityMessageProvider>(); _listener = new TeamCityRunListener(_messageProvider); _listener.OnContextStart(new ContextInfo("Context", "Concern", "TypeName", "Namespace", "AssemblyName")); }
protected override void Before_each_spec() { _messageProvider = Mocks.StrictMock<ITeamCityMessageProvider>(); _sut = new TeamCityRunListener(_messageProvider); _contextInfo = new ContextInfo("Context", "Concern", "TypeName", "Namespace", "AssemblyName"); _specificationInfo = new SpecificationInfo("Spec", "Type"); }