/// <summary> /// The set branch coverage data. /// </summary> /// <param name="totalconditions"> /// The totalconditions. /// </param> /// <param name="coveredconditions"> /// The coveredconditions. /// </param> public void SetBranchCoverageData(string totalconditions, string coveredconditions) { var totalhits = totalconditions.Split(';'); var coveredhits = coveredconditions.Split(';'); for (int i = 0; i < totalhits.Length; i++) { var elemstot = totalhits[i].Split('='); var elemscov = coveredhits[i].Split('='); if (elemstot[0].Equals(elemscov[0])) { var newline = new BranchCoverage { Id = Convert.ToInt32(elemstot[0]), TotalConditions = Convert.ToInt32(elemstot[1]), CoveredConditions = Convert.ToInt32(elemscov[1]) }; this.BranchHits.Add(newline); } } }