mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 20:30:41 +00:00
26 lines
717 B
C#
26 lines
717 B
C#
using Shouldly;
|
|
using Xunit;
|
|
using ZonyLrcTools.Common.Infrastructure.Exceptions;
|
|
|
|
namespace ZonyLrcTools.Tests.Infrastructure.Exceptions
|
|
{
|
|
public class ErrorCodeHelperTests : TestBase
|
|
{
|
|
[Fact]
|
|
public void LoadMessage_Test()
|
|
{
|
|
ErrorCodeHelper.LoadErrorMessage();
|
|
|
|
ErrorCodeHelper.ErrorMessages.ShouldNotBeNull();
|
|
ErrorCodeHelper.ErrorMessages.Count.ShouldBe(15);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetMessage_Test()
|
|
{
|
|
ErrorCodeHelper.LoadErrorMessage();
|
|
|
|
ErrorCodeHelper.GetMessage(ErrorCodes.DirectoryNotExist).ShouldBe("需要扫描的目录不存在,请确认路径是否正确。");
|
|
}
|
|
}
|
|
} |