예제 #1
0
 public CoverageSequencePoint(CoverageLine parentLine, XElement seqPointElement)
 {
     ParentLine = parentLine;
     _seqPointElement = seqPointElement;
     VisitCount = int.Parse(seqPointElement.Attribute("vc").Value);
     StartColumn = int.Parse(seqPointElement.Attribute("c").Value);
     EndColumn = int.Parse(seqPointElement.Attribute("ec").Value);
     LineNumber = int.Parse(seqPointElement.Attribute("l").Value);
     DocumentId = int.Parse(seqPointElement.Attribute("doc").Value);
     Unvisited = VisitCount == 0;
 }
예제 #2
0
        public ComparedLine(ComparedMethod parentMethod, CoverageLine currentLine, CoverageLine prevLine)
        {
            ParentMethod = parentMethod;
            CurrentLine = currentLine;
            PrevLine = prevLine;
            LineNumber = currentLine.LineNumber;

            State = LineState.NoChange;
            if (currentLine.WasVisited && !prevLine.WasVisited)
                State = LineState.Covered;
            else if (!currentLine.WasVisited && prevLine.WasVisited)
                State = LineState.Uncovered;
        }