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.

24 lines
439 B

7 months ago
using STranslateDLL;
using System.Diagnostics;
7 months ago
using Xunit;
namespace STranslateDLL.Tests;
public class LocalModeTests
{
[Fact()]
7 months ago
public async Task ExecuteAsyncTestAsync()
7 months ago
{
7 months ago
try
{
var cts = new CancellationTokenSource();
var ret = await LocalMode.ExecuteAsync("Hello World", "auto", "ZH", cts.Token);
Debug.WriteLine(ret);
}
catch (Exception ex)
{
Debug.WriteLine("error " + ex.Message);
}
7 months ago
}
}