mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 12:11:13 +00:00
19 lines
437 B
C#
19 lines
437 B
C#
using System.IO;
|
|
using Shouldly;
|
|
using Xunit;
|
|
using ZonyLrcTools.Common;
|
|
|
|
namespace ZonyLrcTools.Tests;
|
|
|
|
public class MusicInfoTests
|
|
{
|
|
[Fact]
|
|
public void InvalidFilePathTest()
|
|
{
|
|
var tempFilePath = Path.GetTempFileName();
|
|
var errorFilePath = $"{tempFilePath}" + "?:";
|
|
|
|
var musicInfo = new MusicInfo(errorFilePath, "你好", "Zony");
|
|
musicInfo.FilePath.ShouldBe(tempFilePath);
|
|
}
|
|
} |