public void WillGenerateCorrectCoverageSummary(string[] coverageFiles, string result)
        {
            var parser  = new ReportGeneratorParser();
            var summary = parser.GetCoverageSummary(coverageFiles.ToList());
            var json    = JsonConvert.SerializeObject(summary.CodeCoverageData);

            Assert.AreEqual(json, result);
        }
        public void WillReturnEmptyCoverageForNoInputFiles()
        {
            var parser       = new ReportGeneratorParser();
            var fileCoverage = parser.GetFileCoverageInfos(new List <string>());
            var summary      = parser.GetCoverageSummary(new List <string>());

            Assert.AreEqual(fileCoverage.Count, 0);
            Assert.AreEqual(summary.CodeCoverageData.CoverageStats[0].Total, 0);
        }