public void TestCheckIsEndTimeInvalid(string lyricText, string[] timeTags, bool actual) { var lyric = TestCaseTagHelper.ParseLyric(lyricText); lyric.TimeTags = TestCaseTagHelper.ParseTimeTags(timeTags); Assert.AreEqual(LyricUtils.CheckIsEndTimeInvalid(lyric), actual); }
public void TestCheckInvalidLyricTime(string lyricText, string[] timeTags, TimeInvalid[] invalid) { var lyric = TestCaseTagHelper.ParseLyric(lyricText); lyric.TimeTags = TestCaseTagHelper.ParseTimeTags(timeTags); var issue = run(lyric).OfType <LyricTimeIssue>().FirstOrDefault(); var invalidTimeTagDictionaryKeys = issue?.InvalidLyricTime ?? Array.Empty <TimeInvalid>(); Assert.AreEqual(invalidTimeTagDictionaryKeys, invalid); }
public void TestCheckInvalidLyricTime(string lyricText, string[] timeTags, TimeInvalid[] invalid) { var lyric = TestCaseTagHelper.ParseLyric(lyricText); lyric.TimeTags = TestCaseTagHelper.ParseTimeTags(timeTags); var checker = createChecker(); var result = checker.CheckInvalidLyricTime(lyric); Assert.AreEqual(result, invalid); }
public void TestCheckIsTimeOverlapping(string lyricText, bool actual) { var lyric = TestCaseTagHelper.ParseLyric(lyricText); Assert.AreEqual(LyricUtils.CheckIsTimeOverlapping(lyric), actual); }