将工程所有的cs文件以及xaml文件的编码格式转换为utf-8编码,请安装vs 2022的Force utf-8(No BOM) 2022插件
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user