Esempio n. 1
0
        public void TestParserWithNullFinder()
        {
            MetricsParser parser = new MetricsParser(projectsFolder);

            Assert.Throws <ArgumentException>(() =>
            {
                parser.ParseMetrics(null);
            });
        }
Esempio n. 2
0
        private void DoParsing()
        {
            MetricsParser parser = new MetricsParser(projectsFolder + projectName + Path.DirectorySeparatorChar + "results");

            CoverageFileFinder finder = new CoverageFileFinder.Builder()
                                        .PrimePathCoveragePrefix(ppcPrefix)
                                        .EdgeCoveragePrefix(ecPrefix)
                                        .TestPathPrefix(tpPrefix)
                                        .Build();

            parsingResult = parser.ParseMetrics(finder);
        }