public void TestDecodeEncodedBeatmap(string fileName) { using (var stream = TestResources.OpenLrcResource(fileName)) using (var sr = new StreamReader(stream)) { var text = sr.ReadToEnd(); // Parser song var parser = new LrcParser(); var song = parser.Decode(text); // Encode to lyric var newLyricText = parser.Encode(song); // Encode and decode result should be same IsLyricEqual(newLyricText, text); } }
protected static Lyric GenerateLyric(string lyric) { var parser = new LrcParser(); return(parser.Decode(lyric)); }