예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void TestAbleToInsertTextTagAtIndex(string text, int index, bool actual)
        {
            var lyric = TestCaseTagHelper.ParseLyricWithTimeTag(text);

            Assert.AreEqual(LyricUtils.AbleToInsertTextTagAtIndex(lyric, index), actual);
        }