refactor: Use Object to replace byte arrays when generating lyrics.

This commit is contained in:
real-zony committed 2022-10-28 10:13:14 +08:00
1 parent b7b1f36bf5
commit 5d1e90f638
14 files changed
+37 -42

No files matched your search

@@ -21,6 +21,7 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyrics
}
[Fact]
[Trait("LyricsProvider ", "NetEase")]
public async Task DownloadAsync_Test()
{
var lyric = await _lyricsProvider.DownloadAsync("Hollow", "Janet Leon");
@@ -93,7 +94,7 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyrics
{
var options = ServiceProvider.GetRequiredService<IOptions<GlobalOptions>>();
options.Value.Provider.Lyric.Config.IsOnlyOutputTranslation = true;
var lyric = await _lyricsProvider.DownloadAsync("Bones", "Image Dragons");
lyric.ToString().ShouldNotContain("Gimme, gimme, gimme some time to think");
}