public override int Run(string[] args) { #if NET40 var id = string.Format("net40-{0}", (Environment.Is64BitProcess ? "x64" : "x86")); #else var id = string.Format("net45-{0}", (Environment.Is64BitProcess ? "x64" : "x86")); #endif Console.WriteLine(id); var dlls = args.Select(Path.GetFullPath); var results = new RunTests().RunAlone(id, dlls); WriteResults.ToFiles(results, _outputs); return(results.HasError ? 1 : 0); }
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; } }