private static string GetHumanSpeakNotesForText(string textToSave)
        {
            TaggedText taggedText = new TaggedText(textToSave);
            string     strToSpeak = taggedText.ToPrettyString();

            return(strToSpeak);
        }
Exemplo n.º 2
0
        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.");
        }
Exemplo n.º 3
0
        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.");
        }
Exemplo n.º 4
0
        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);
        }