修复测试用例错误

This commit is contained in:
zhengxuan.zhang
2026-05-18 15:32:00 +08:00
parent e5cfbf9dd5
commit dcc15f62d1
10 changed files with 88 additions and 174 deletions
+11
View File
@@ -63,6 +63,17 @@ namespace XplorePlane.Tests.Helpers
ct.ThrowIfCancellationRequested();
return src;
});
mock.Setup(s => s.ProcessImageWithOutputAsync(
It.IsAny<BitmapSource>(),
It.IsAny<string>(),
It.IsAny<IDictionary<string, object>>(),
It.IsAny<IProgress<double>>(),
It.IsAny<CancellationToken>()))
.ReturnsAsync((BitmapSource src, string _, IDictionary<string, object> _, IProgress<double> _, CancellationToken ct) =>
{
ct.ThrowIfCancellationRequested();
return (src, (IReadOnlyDictionary<string, object>)null);
});
return mock;
}