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); }
public void TestAbleToInsertTextTagAtIndex(string text, int index, bool actual) { var lyric = TestCaseTagHelper.ParseLyricWithTimeTag(text); Assert.AreEqual(LyricUtils.AbleToInsertTextTagAtIndex(lyric, index), actual); }