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
581 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
public class LocalModeTests(ITestOutputHelper testOutputHelper)
7 months ago
{
[Fact()]
7 months ago
public async Task ExecuteAsyncTestAsync()
7 months ago
{
6 months ago
try
{
var cts = new CancellationTokenSource();
var ret = await LocalMode.ExecuteAsync("Hello World", "EN", "ZH", cts.Token);
testOutputHelper.WriteLine(ret);
6 months ago
}
catch (Exception ex)
{
Debug.WriteLine("error " + ex.Message);
}
7 months ago
}
}