From 689b642f8e67959a6e10b602c082ddac903363a0 Mon Sep 17 00:00:00 2001 From: zggsong Date: Tue, 5 Nov 2024 16:30:10 +0800 Subject: [PATCH] update --- STranslateDLL/{Program.cs => LocalMode.cs} | 2 +- STranslateDLLTests/{ProgramTests.cs => LocalModeTests.cs} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename STranslateDLL/{Program.cs => LocalMode.cs} (99%) rename STranslateDLLTests/{ProgramTests.cs => LocalModeTests.cs} (73%) 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)