From 2a9e9f26c75c58df43c50511ec37c0f38bd5e388 Mon Sep 17 00:00:00 2001 From: gewuyou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 25 Apr 2026 09:56:32 +0800 Subject: [PATCH] =?UTF-8?q?test(game-tests):=20=E7=AE=80=E5=8C=96=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E9=85=8D=E7=BD=AE=E9=9B=86=E6=88=90=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=BC=82=E6=AD=A5=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 简化 ArchitectureConfigIntegrationTests 中的异步异常断言包装 - 保持重复初始化场景的测试语义与验证路径不变 --- .../Config/ArchitectureConfigIntegrationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Game.Tests/Config/ArchitectureConfigIntegrationTests.cs b/GFramework.Game.Tests/Config/ArchitectureConfigIntegrationTests.cs index fb8ae72c..ebc77ed3 100644 --- a/GFramework.Game.Tests/Config/ArchitectureConfigIntegrationTests.cs +++ b/GFramework.Game.Tests/Config/ArchitectureConfigIntegrationTests.cs @@ -128,7 +128,7 @@ public class ArchitectureConfigIntegrationTests var secondArchitecture = new ModuleOnlyArchitecture(module); var exception = - Assert.ThrowsAsync(async () => await secondArchitecture.InitializeAsync().ConfigureAwait(false)); + Assert.ThrowsAsync(() => secondArchitecture.InitializeAsync()); Assert.Multiple(() => {