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.

23 lines
490 B

using System.Diagnostics;
using Xunit;
namespace STranslateDLL.Tests;
public class LocalModeTests
{
[Fact()]
public async Task ExecuteAsyncTestAsync()
{
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);
}
}
}