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.

25 lines
1.7 KiB

6 months ago
using System.Diagnostics;
using STranslateDLL;
7 months ago
using Xunit;
using Xunit.Abstractions;
7 months ago
namespace STranslateDLLTests;
7 months ago
2 weeks ago
public class LocalModeTests(ITestOutputHelper testOutputHelper)
7 months ago
{
[Fact()]
6 months ago
public async Task ExecuteAsyncTestAsync()
7 months ago
{
6 months ago
try
{
var cts = new CancellationTokenSource();
var ret = await LocalMode.ExecuteAsync("20241105 version description: 1. fix the problem of translation failure of STranslate local service 2. add vocabulary book (Oulu Dictionary) 3. optimize the setting page 4. optimize the display effect of word searching 5. add Kingsoft Wordsmith and Bing Dictionary as built-in service 6. add EdgeTTS as built-in service, the effect of TTS will be better 7. add the TTS hotkeys in the software (see Settings - Hotkey Settings - Software Hotkey List) 8.Add TTS hotkeys in the software (see Settings - Hotkey Settings - Software Hotkey List) 8. Optional not to show notification at startup 9. Paste text to execute translation automatically --Test: Replacement Translation and Silent OCR use the mouse style as a marker in the execution, such as the end of the execution caused by the mouse has not been restored, please give us feedback on the restoration of the mouse can be set up in the settings of the recovery method to set up the mouse https://jingyan.baidu.com/article/6c67b1d6ddbced6686bb1e2c.html The developer's personal samples are relatively small, I do not know whether there are uncontrollable factors, the next two days, if you do not have any problems with the feedback will be sent to the official version!", "EN", "ZH", cts.Token);
testOutputHelper.WriteLine(ret);
6 months ago
}
catch (Exception ex)
{
Debug.WriteLine("error " + ex.Message);
}
7 months ago
}
}