public void SyllableAnalyzerShouldSplitByVowel()
        {
            var analyzer = new SyllableAnalyzer("testing");
            var groups   = analyzer.ParseVowelGroups().ToArray();

            Assert.AreEqual(new[] { "test", "ing" }, groups);
        }
        private static int GetSyllableCount(string word)
        {
            var analyzer = new SyllableAnalyzer(word);

            return(analyzer.GetCount());
        }
 public void IsDiphthongShouldHandleSpecialCases()
 {
     Assert.False(SyllableAnalyzer.IsDiphthong("ia"), "ia should not be seen as a diphthong");
     Assert.False(SyllableAnalyzer.IsDiphthong("io"), "io should not be seen as a diphthong");
 }
 public void IsDiphthongShouldDetectDiphthongsCorrectly()
 {
     Assert.True(SyllableAnalyzer.IsDiphthong("oi"), "oi should be seen as a diphthong");
     Assert.False(SyllableAnalyzer.IsDiphthong("op"), "op should not be seen as a diphthong");
 }
 private static int GetSyllableCount(string word)
 {
     var analyzer = new SyllableAnalyzer(word);
     return analyzer.GetCount();
 }
 public void SyllableAnalyzerShouldSplitByVowel()
 {
     var analyzer = new SyllableAnalyzer("testing");
     var groups = analyzer.ParseVowelGroups().ToArray();
     Assert.AreEqual(new[] {"test", "ing"}, groups);
 }