Ejemplo n.º 1
0
        private static emma.coverage[] CreateCoverate(Entry member)
        {
            DotCoverage method = new DotCoverage();
            method.CountElements(member);

            DotCoverage cov = new DotCoverage();
            cov.Add(member.CoveredStatements, member.TotalStatements);

            return Utils.CreateCoverage(method, cov, cov);
        }
Ejemplo n.º 2
0
        private static emma.coverage[] CreateCoverage(dotcover.Type type)
        {
            DotCoverage cls = new DotCoverage();
            ForEachClass(type, cls.CountElements);

            DotCoverage method = new DotCoverage();
            ForEachMethod(type, method.CountElements);

            DotCoverage cov = new DotCoverage();
            cov.Add(int.Parse(type.CoveredStatements), int.Parse(type.TotalStatements));

            return Utils.CreateCoverage(cls, method, cov, cov);
        }