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.

25 lines
579 B

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", "auto", "ZH", cts.Token);
testOutputHelper.WriteLine(ret);
}
catch (Exception ex)
{
Debug.WriteLine("error " + ex.Message);
}
}
}