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

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("Hello World", "EN", "ZH", cts.Token);
testOutputHelper.WriteLine(ret);
}
catch (Exception ex)
{
Debug.WriteLine("error " + ex.Message);
}
}
}