You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System.Diagnostics ;
using STranslateDLL ;
using Xunit ;
using Xunit.Abstractions ;
namespace STranslateDLLTests ;
public class LocalModeTests ( ITestOutputHelper testOutputHelper )
{
[Fact()]
public async Task ExecuteAsyncTestAsync ( )
{
try
{
var cts = new CancellationTokenSource ( ) ;
var ret = await LocalMode . ExecuteAsync ( "20241105版本说明: \\r\\n1. 修复STranslate本地服务翻译失败的问题\\r\\n2. 添加生词本(欧路词典)\\r\\n3. 优化设置页面\\r\\n4. 优化查词显示效果\\r\\n5. 添加金山词霸、必应词典作为内置服务\\r\\n6. 添加EdgeTTS作为内置服务, TTS效果更佳\\r\\n7. 添加软件内TTS热键( 参见设置-热键设置-软件热键列表)\\r\\n8. 启动时可选不显示通知\\r\\n9. 粘贴文本自动执行翻译\\r\\n---\\r\\n测试项: \\r\\n替换翻译及静默OCR使用鼠标样式作为执行中标记, 如若执行结束导致鼠标未恢复, 恳请反馈一下, 恢复方式到设置中设置鼠标即可https://jingyan.baidu.com/article/6c67b1d6ddbced6686bb1e2c.html\\r\\n\\r\\n开发者个人样本比较少, 不知道是否存在不可控因素, 这两天大家如果没有问题反馈就发正式版本" , "ZH" , "EN" , cts . Token ) ;
testOutputHelper . WriteLine ( ret ) ;
}
catch ( Exception ex )
{
Debug . WriteLine ( "error " + ex . Message ) ;
}
}
}