Exemplo n.º 1
0
        public void WriteLine(string value)
        {
            if (connection == null)
            {
                return;
            }

            if (OutputTransformer != null)
            {
                value = OutputTransformer.Transform(value);
            }

            connection.WriteLine(value);
        }
Exemplo n.º 2
0
 /// <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);
 }