private string ModificationFile(IIntegrationResult result) { if (!AppendTimeStamp) { return(Path.Combine(result.BaseFromArtifactsDirectory(OutputPath), Filename)); } FileInfo fi = new FileInfo(Filename); string dummy = Filename.Remove(Filename.Length - fi.Extension.Length, fi.Extension.Length); string newFileName = string.Format(System.Globalization.CultureInfo.CurrentCulture, "{0}_{1}{2}", dummy, result.StartTime.ToString("yyyyMMddHHmmssfff", CultureInfo.CurrentCulture), fi.Extension); return(Path.Combine(result.BaseFromArtifactsDirectory(OutputPath), newFileName)); }