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
583 B

6 months ago
using System.Diagnostics;
using STranslateDLL;
7 months ago
using Xunit;
using Xunit.Abstractions;
7 months ago
namespace STranslateDLLTests;
7 months ago
3 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();
3 weeks ago
var ret = await LocalMode.ExecuteAsync("Hello World", "auto", "ZH", cts.Token);
testOutputHelper.WriteLine(ret);
6 months ago
}
catch (Exception ex)
{
Debug.WriteLine("error " + ex.Message);
}
7 months ago
}
}