public void SparseAnalyses_SimpleEdits_SimpleSegmentParagraph_DuplicateWordforms_RemoveSegment_LT5376() { // First set sparse analyses on wordforms that have multiple occurrences. ParagraphBuilder pb = new ParagraphBuilder(m_textsDefn, m_text1, (int)Text1ParaIndex.SimpleSegmentPara); pb.ParseParagraph(); ParagraphAnnotatorForParagraphBuilder tapb = new ParagraphAnnotatorForParagraphBuilder(pb); tapb.SetDefaultWordGloss("xxxyalola", 0); // gloss first occurrence. tapb.ValidateAnnotations(); // Remove first sentence containing 'xxxyalola'; its annotation should be removed. pb.RemoveSegment(0); pb.RebuildParagraphContentFromAnnotations(); pb.ParseParagraph(); tapb.ValidateAnnotations(); }