public override void DeleteRangeSpanningSegmentBoundaryAndWholeTwfics() { using (SegmentFreeFormAnnotationValidationHelper helper = new SegmentFreeFormAnnotationValidationHelper(m_text1.ContentsOA.ParagraphsOS[0] as StTxtPara)) { base.DeleteRangeSpanningSegmentBoundaryAndWholeTwfics(); helper.CaptureAndValidateSegmentsAfterSegBreakEdit(2); helper.ValidateSegFFCount(0, 4); // merge will result in one extra ff, because we don't merge notes. helper.ValidateSegFFCount(1, 3); helper.ValidateMergedFreeformAnnotations(0, 1); // test that the freeform annotations in segment 2 remained unchanged. helper.ValidateMatchingFreeformAnnotations(2, 1); // TODO: Check to make sure Freeform Annotation Content status gets flagged as Unfinished. } }
private static void ValidateReplaceSegmentBreakWithNonSegmentBreakResultedInMerge(SegmentFreeFormAnnotationValidationHelper helper) { helper.CaptureAndValidateSegmentsAfterSegBreakEdit(2); helper.ValidateSegFFCount(0, 4); // merge will result in one extra ff, because we don't merge notes. helper.ValidateSegFFCount(1, 3); helper.ValidateMergedFreeformAnnotations(0, 1); helper.ValidateMatchingFreeformAnnotations(2, 1); }
public override void DeleteSegmentBreakToMerge2Sentences() { // get segment annotations for affected sentences. using (SegmentFreeFormAnnotationValidationHelper helper = new SegmentFreeFormAnnotationValidationHelper(m_text1.ContentsOA.ParagraphsOS[0] as StTxtPara)) { base.DeleteSegmentBreakToMerge2Sentences(); helper.CaptureAndValidateSegmentsAfterSegBreakEdit(2); helper.ValidateSegFFCount(0, 4); // merge will result in one extra ff, because we don't merge notes. helper.ValidateSegFFCount(1, 3); helper.ValidateMergedFreeformAnnotations(0, 1); // test that the last sentence ff annotation was unaffected. helper.ValidateMatchingFreeformAnnotations(2, 1); // TODO: Check to make sure Freeform Annotation Content status gets flagged as Unfinished. } }