zggsong 2 weeks ago
commit fc3a440380

@ -4,7 +4,7 @@ using System.Text.Json.Nodes;
namespace STranslateDLL;
public static class Program
public static class LocalMode
{
public static async Task<string> ExecuteAsync(
string content,

@ -5,7 +5,7 @@ using Xunit.Abstractions;
namespace STranslateDLLTests;
public class ProgramTests(ITestOutputHelper testOutputHelper)
public class LocalModeTests(ITestOutputHelper testOutputHelper)
{
[Fact()]
public async Task ExecuteAsyncTestAsync()
@ -13,7 +13,7 @@ public class ProgramTests(ITestOutputHelper testOutputHelper)
try
{
var cts = new CancellationTokenSource();
var ret = await Program.ExecuteAsync("Hello World", "auto", "ZH", cts.Token);
var ret = await LocalMode.ExecuteAsync("Hello World", "auto", "ZH", cts.Token);
testOutputHelper.WriteLine(ret);
}
catch (Exception ex)
Loading…
Cancel
Save