using System.Diagnostics; using STranslateDLL; using Xunit; using Xunit.Abstractions; namespace STranslateDLLTests; public class ProgramTests(ITestOutputHelper testOutputHelper) { [Fact()] public async Task ExecuteAsyncTestAsync() { try { var cts = new CancellationTokenSource(); var ret = await Program.ExecuteAsync("Hello World", "EN", "ZH", cts.Token); testOutputHelper.WriteLine(ret); } catch (Exception ex) { Debug.WriteLine("error " + ex.Message); } } }