internal CmIndirectAnnotation MakeRow(DsConstChart chart, string lineNo) { CmIndirectAnnotation row = MakeIndirectAnnotation(); chart.RowsRS.Append(row); row.Comment.SetAnalysisDefaultWritingSystem(lineNo); row.AnnotationTypeRA = CmAnnotationDefn.ConstituentChartRow(Cache); return(row); }
/// <summary> /// Verify that the specified row of the chart exists and has the expected row-number comment and number of rows. /// Also that it is a CCR. /// </summary> /// <param name="index"></param> /// <param name="rowNumber"></param> /// <param name="cAppliesTo"></param> internal void VerifyRow(int index, string rowNumber, int cAppliesTo) { int crows = m_chart.RowsRS.Count; Assert.IsTrue(index <= crows); CmIndirectAnnotation row = (CmIndirectAnnotation)m_chart.RowsRS[index]; Assert.AreEqual(rowNumber, row.Comment.AnalysisDefaultWritingSystem.Text); Assert.AreEqual(cAppliesTo, row.AppliesToRS.Count); Assert.AreEqual(CmAnnotationDefn.ConstituentChartRow(Cache), row.AnnotationTypeRA); }