public void WhenFinished(ResultsFile file) { var rt = new RunTests(); rt.PrintOutAloneStart(_id); foreach (var r in file.Results) { rt.PrintOutAloneResults(r); } rt.PrintOutAloneEnd(_id, file); if (_outputs != null && _outputs.Any()) { WriteResults.ToFiles(file, _outputs); Environment.ExitCode = file.HasError ? 1 : 0; } }