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