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.
24 lines
439 B
24 lines
439 B
using STranslateDLL;
|
|
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);
|
|
}
|
|
}
|
|
}
|