public void RemoveTagsFromText() { const string expected = "This has some tags in it."; var t = new TaggedText(SentenceWithTags); var actual = t.ToPrettyString(); Assert.AreEqual(expected, actual, "Didn't remove tags properly."); }
private static List<string> ConvertSectionsToCaptions(IEnumerable<string> separatedNotes) { List<String> captionCollection = new List<string>(); foreach (string text in separatedNotes) { TaggedText section = new TaggedText(text); String currentCaption = section.ToPrettyString(); captionCollection.Add(currentCaption); } return captionCollection; }
private void RefreshScriptList(PowerPointSlide slide) { var relativeSlideId = GetRelativeSlideIndex(slide.ID); var taggedNotes = new TaggedText(slide.NotesPageText.Trim()); var prettyNotes = taggedNotes.ToPrettyString(); var splitScript = (new TaggedText(prettyNotes)).SplitByClicks(); while (relativeSlideId >= _scriptList.Count) { _scriptList.Add(new List<string>()); } _scriptList[relativeSlideId] = splitScript; }