public void Receive(DiagnosticResults results)
        {
            var output          = formatter.Format(results);
            var outputDirectory = Path.GetDirectoryName(outputPath);

            if (string.IsNullOrEmpty(outputDirectory))
            {
                throw new ArgumentException("Output directory is invalid", "outputPath");
            }

            if (!Directory.Exists(outputDirectory))
            {
                Directory.CreateDirectory(outputDirectory);
            }

            File.WriteAllText(outputPath, output);
        }
        public void Receive(DiagnosticResults results)
        {
            var output = formatter.Format(results);

            Console.WriteLine(output);
        }
        public void Receive(DiagnosticResults results)
        {
            var output = outputFormatter.Format(results);

            raiseMessage(output);
        }