mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 12:11:13 +00:00
21 lines
622 B
C#
21 lines
622 B
C#
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using Shouldly;
|
|
using Xunit;
|
|
using ZonyLrcTools.Common.MusicScanner;
|
|
|
|
namespace ZonyLrcTools.Tests.MusicScanner;
|
|
|
|
public class CsvFileMusicScannerTests : TestBase
|
|
{
|
|
[Fact]
|
|
public async Task GetMusicInfoFromCsvFileAsync_Test()
|
|
{
|
|
var musicScanner = GetService<CsvFileMusicScanner>();
|
|
var musicInfo = await musicScanner.GetMusicInfoFromCsvFileAsync(Path.Combine("TestData", "test.csv"), new ManualDownloadOptions());
|
|
|
|
musicInfo.ShouldNotBeNull();
|
|
musicInfo.Count.ShouldBeGreaterThan(0);
|
|
musicInfo.Count.ShouldBe(5);
|
|
}
|
|
} |