public void WillGenerateCorrectFileCoverage(string[] coverageFiles, string result)
        {
            var parser        = new ReportGeneratorParser();
            var fileCoverages = parser.GetFileCoverageInfos(coverageFiles.ToList());
            var json          = JsonConvert.SerializeObject(fileCoverages);

            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);
        }