将工程所有的cs文件以及xaml文件的编码格式转换为utf-8编码,请安装vs 2022的Force utf-8(No BOM) 2022插件

This commit is contained in:
TianSong
2026-04-20 14:38:06 +08:00
parent 28a1ae0898
commit 9af453bc8d
63 changed files with 66 additions and 66 deletions
+4 -4
View File
@@ -10,14 +10,14 @@ using XplorePlane.Services;
namespace XplorePlane.Tests.Helpers
{
/// <summary>
/// 瘚贝𨭌撌亙嚗𡁜撱?Mock 霂閧鍂
/// 测试辅助工具:创?Mock 和测试用图像
/// </summary>
internal static class TestHelpers
{
public static readonly string[] DefaultKeys = { "Blur", "Sharpen", "Threshold" };
/// <summary>
/// 𥕦遣銝?1x1 ?BitmapSource嚗𣬚鍂鈭擧?
/// 创建一?1x1 像素?BitmapSource,用于测?
/// </summary>
public static BitmapSource CreateTestBitmap(int width = 4, int height = 4)
{
@@ -31,13 +31,13 @@ namespace XplorePlane.Tests.Helpers
}
/// <summary>
/// 𥕦遣銝銝芾憭批㦛𧶏瘚贝蝻拇𦆮嚗?
/// 创建一个超大图像(用于测试预览缩放?
/// </summary>
public static BitmapSource CreateLargeBitmap(int width = 4096, int height = 4096)
=> CreateTestBitmap(width, height);
/// <summary>
/// 𥕦遣 Mock IImageProcessingService嚗峕釣?DefaultKeys 銝剔蝞堒
/// 创建标准 Mock IImageProcessingService,注?DefaultKeys 中的算子
/// </summary>
public static Mock<IImageProcessingService> CreateMockImageService(
string[]? keys = null,