From 089559d058938195eef3c752b580e724814d8a25 Mon Sep 17 00:00:00 2001 From: real-zony Date: Thu, 3 Feb 2022 17:17:49 +0800 Subject: [PATCH] test: Try to reproduce the issue 84. --- .../Lyric/NetEaseLyricDownloaderTests.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs b/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs index 844a250..9068517 100644 --- a/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs +++ b/tests/ZonyLrcTools.Tests/Infrastructure/Lyric/NetEaseLyricDownloaderTests.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Microsoft.Extensions.DependencyInjection; +using Newtonsoft.Json; using Shouldly; using Xunit; using ZonyLrcTools.Cli.Infrastructure.Lyric; @@ -42,5 +42,13 @@ namespace ZonyLrcTools.Tests.Infrastructure.Lyric lyric.ShouldNotBeNull(); lyric.IsPruneMusic.ShouldBe(true); } + + [Fact] + public async Task DownloadAsync_Issue84_Test() + { + var lyric = await _lyricDownloader.DownloadAsync("太空彈", "01"); + lyric.ShouldNotBeNull(); + lyric.IsPruneMusic.ShouldBe(false); + } } } \ No newline at end of file