diff --git a/STranslateDLL/Program.cs b/STranslateDLL/LocalMode.cs similarity index 99% rename from STranslateDLL/Program.cs rename to STranslateDLL/LocalMode.cs index 1d20220..2982804 100644 --- a/STranslateDLL/Program.cs +++ b/STranslateDLL/LocalMode.cs @@ -4,7 +4,7 @@ using System.Text.Json.Nodes; namespace STranslateDLL; -public static class Program +public static class LocalMode { public static async Task ExecuteAsync( string content, diff --git a/STranslateDLLTests/ProgramTests.cs b/STranslateDLLTests/LocalModeTests.cs similarity index 73% rename from STranslateDLLTests/ProgramTests.cs rename to STranslateDLLTests/LocalModeTests.cs index 595b83d..b37653b 100644 --- a/STranslateDLLTests/ProgramTests.cs +++ b/STranslateDLLTests/LocalModeTests.cs @@ -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)