public void WriteLine(string value) { if (connection == null) { return; } if (OutputTransformer != null) { value = OutputTransformer.Transform(value); } connection.WriteLine(value); }
/// <summary> /// Add a default transformer appending the current date time at the time of calling test /// </summary> /// <returns></returns> public CoverletSettings WithDateTimeTransformer() { OutputTransformer = (fileName, directory) => $@"{directory}\{fileName}-{DateTime.UtcNow:dd-MM-yyyy-HH-mm-ss-FFF}"; return(this); }