public void TestAddTextText(string text, int position, string addedText, string actualText) { var lyric = new Lyric { Text = text }; LyricUtils.AddText(lyric, position, addedText); Assert.AreEqual(lyric.Text, actualText); }
public void TextAddTextRomaji(string[] romajies, int position, string addedText, string[] targetRomajies) { var lyric = new Lyric { Text = "カラオケ", RomajiTags = TestCaseTagHelper.ParseRomajiTags(romajies), }; LyricUtils.AddText(lyric, position, addedText); Assert.AreEqual(lyric.RomajiTags, TestCaseTagHelper.ParseRomajiTags(targetRomajies)); }
public void TestAddTextTimeTag(string[] timeTags, int position, string addedText, string[] actualTimeTags) { var lyric = new Lyric { Text = "カラオケ", TimeTags = TestCaseTagHelper.ParseTimeTags(timeTags), }; LyricUtils.AddText(lyric, position, addedText); TimeTagAssert.AreEqual(lyric.TimeTags, TestCaseTagHelper.ParseTimeTags(actualTimeTags)); }
public void TextAddTextRuby(string[] rubies, int position, string addedText, string[] targetRubies) { var lyric = new Lyric { Text = "カラオケ", RubyTags = TestCaseTagHelper.ParseRubyTags(rubies), }; LyricUtils.AddText(lyric, position, addedText); TextTagAssert.ArePropertyEqual(lyric.RubyTags, TestCaseTagHelper.ParseRubyTags(targetRubies)); }