public void TestGetTimeTagIndexDisplayText(string text, string textIndexStr, string actual)
        {
            var lyric     = TestCaseTagHelper.ParseLyricWithTimeTag(text);
            var textIndex = TestCaseTagHelper.ParseTextIndex(textIndexStr);

            Assert.AreEqual(LyricUtils.GetTimeTagIndexDisplayText(lyric, textIndex), actual);
        }
        public void TestGetTimeTagDisplayText(string text, string textIndexStr, string actual)
        {
            var lyric     = TestCaseTagHelper.ParseLyricWithTimeTag(text);
            var textIndex = TestCaseTagHelper.ParseTextIndex(textIndexStr);
            var timeTag   = lyric.TimeTags?.Where(x => x.Index == textIndex).FirstOrDefault();

            Assert.AreEqual(LyricUtils.GetTimeTagDisplayText(lyric, timeTag), actual);
        }
        protected TimeTagIndexCaretPosition CreateTimeTagIndexCaretPosition(Lyric[] lyrics, int lyricIndex, string textIndexText)
        {
            if (lyricIndex == NOT_EXIST)
            {
                return(null);
            }

            var lyric   = lyrics.ElementAtOrDefault(lyricIndex);
            var textTag = TestCaseTagHelper.ParseTextIndex(textIndexText);

            return(new TimeTagIndexCaretPosition(lyric, textTag));
        }