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); } } }