Ejemplo n.º 1
0
        internal string CompareFileDependencySummary(string header, ConcurrentDictionary <string, FileArtifactSummary> fileDependencySummary, ConcurrentDictionary <string, FileArtifactSummary> otherFileDependencySummary)
        {
            var fileArtifactCompare = m_analyzer.GenerateFileArtifactDifference(fileDependencySummary, otherFileDependencySummary);

            if (fileArtifactCompare.fileArtifactChanges.Count == 0 && fileArtifactCompare.fileArtifactMissing.Count == 0)
            {
                return(string.Empty);
            }

            using (var output = new StringWriter(CultureInfo.InvariantCulture))
            {
                output.WriteLine(header);
                WriteArtifactDiffLine(fileArtifactCompare.fileArtifactChanges, output, string.Empty);
                WriteArtifactDiffLine(fileArtifactCompare.fileArtifactMissing, output, "missing, ");
                return(output.ToString());
            }
        }