public void TestText(string text, string[] rubyTags, string[] romajiTags) { AddStep("Create lyric", () => setContents(() => new LyricSpriteText { Text = text, Rubies = TestCaseTagHelper.ParseParsePositionTexts(rubyTags), Romajies = TestCaseTagHelper.ParseParsePositionTexts(romajiTags), })); }
public DefaultLyricSpriteText(bool ruby = true, bool romaji = true) { Text = "カラオケ"; if (ruby) { Rubies = TestCaseTagHelper.ParseParsePositionTexts(new[] { "[0,1]:か", "[1,2]:ら", "[2,3]:お", "[3,4]:け" }); } if (romaji) { Romajies = TestCaseTagHelper.ParseParsePositionTexts(new[] { "[0,1]:ka", "[1,2]:ra", "[2,3]:o", "[3,4]:ke" }); } }