refactor: Common components are moved to the Common library.

This commit is contained in:
real-zony
2022-10-06 13:02:20 +08:00
parent ecab0e0f5c
commit 740e8f4c63
64 changed files with 84 additions and 150 deletions

View File

@@ -1,11 +1,10 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Xunit;
using ZonyLrcTools.Cli.Infrastructure.IO;
using ZonyLrcTools.Common.Infrastructure.IO;
namespace ZonyLrcTools.Tests
{
@@ -21,7 +20,7 @@ namespace ZonyLrcTools.Tests
var fileScanner = ServiceProvider.GetRequiredService<IFileScanner>();
var result = await fileScanner.ScanAsync(
Path.GetDirectoryName(tempMusicFilePath),
new[] {"*.mp3", "*.flac"});
new[] { "*.mp3", "*.flac" });
result.Count.ShouldBe(2);
result.First(e => e.ExtensionName == ".mp3").FilePaths.Count.ShouldNotBe(0);