Ejemplo n.º 1
0
        public void MatchListMultipleInSentence()
        {
            var sentence = "This [voice: male]has multiple[endvoice][voice: female] matches.[endvoice]";
            var matches = new StartVoiceTagMatcher().Matches(sentence);

            Assert.IsTrue(matches.Any(), "No matches found.");
            Assert.IsTrue(matches.Count == 2, "Didn't match all.");
        }
Ejemplo n.º 2
0
        public void MatchListMultipleInSentence()
        {
            var sentence = "This [voice: male]has multiple[endvoice][voice: female] matches.[endvoice]";
            var matches  = new StartVoiceTagMatcher().Matches(sentence);

            Assert.IsTrue(matches.Any(), "No matches found.");
            Assert.IsTrue(matches.Count == 2, "Didn't match all.");
        }
Ejemplo n.º 3
0
        public void MatchListMultipleInSentence()
        {
            string sentence = "This [voice: male]has multiple[endvoice][voice: female] matches.[endvoice]";

            System.Collections.Generic.List <PowerPointLabs.Tags.ITag> matches = new StartVoiceTagMatcher().Matches(sentence);

            Assert.IsTrue(matches.Any(), "No matches found.");
            Assert.IsTrue(matches.Count == 2, "Didn't match all.");
        }
Ejemplo n.º 4
0
        public void MatchListSingleInSentence()
        {
            var sentence = "This is [voice: female]a test[endvoice].";
            var matches = new StartVoiceTagMatcher().Matches(sentence);

            Assert.IsTrue(matches.Any(), "No matches found.");
            Assert.IsTrue(matches.Count == 1, "More than one match.");

            var match = matches[0];
            Assert.IsTrue(match.Start == 8, "Match start was incorrect.");
            Assert.IsTrue(match.End == 22, "Match end was incorrect.");
        }
Ejemplo n.º 5
0
        public void MatchListSingleInSentence()
        {
            string sentence = "This is [voice: female]a test[endvoice].";

            System.Collections.Generic.List <PowerPointLabs.Tags.ITag> matches = new StartVoiceTagMatcher().Matches(sentence);

            Assert.IsTrue(matches.Any(), "No matches found.");
            Assert.IsTrue(matches.Count == 1, "More than one match.");

            PowerPointLabs.Tags.ITag match = matches[0];
            Assert.IsTrue(match.Start == 8, "Match start was incorrect.");
            Assert.IsTrue(match.End == 22, "Match end was incorrect.");
        }
Ejemplo n.º 6
0
        public void MatchListSingleInSentence()
        {
            var sentence = "This is [voice: female]a test[endvoice].";
            var matches  = new StartVoiceTagMatcher().Matches(sentence);

            Assert.IsTrue(matches.Any(), "No matches found.");
            Assert.IsTrue(matches.Count == 1, "More than one match.");

            var match = matches[0];

            Assert.IsTrue(match.Start == 8, "Match start was incorrect.");
            Assert.IsTrue(match.End == 22, "Match end was incorrect.");
        }