From 877d1f38a67483133d920ea7973dcdab4004e5ce Mon Sep 17 00:00:00 2001 From: gewuyou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 25 Apr 2026 09:17:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(godot-tests):=20=E6=B8=85=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=AE=89=E8=A3=85=E6=B5=8B=E8=AF=95=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E5=8C=85=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 Assert.ThrowsAsync 中机械型 async 包装\n- 保持锚点缺失场景的异常与未安装断言语义不变 --- .../AbstractArchitectureModuleInstallationTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GFramework.Godot.Tests/Architectures/AbstractArchitectureModuleInstallationTests.cs b/GFramework.Godot.Tests/Architectures/AbstractArchitectureModuleInstallationTests.cs index 83dc2458..75644abc 100644 --- a/GFramework.Godot.Tests/Architectures/AbstractArchitectureModuleInstallationTests.cs +++ b/GFramework.Godot.Tests/Architectures/AbstractArchitectureModuleInstallationTests.cs @@ -19,8 +19,8 @@ public sealed class AbstractArchitectureModuleInstallationTests var architecture = new TestArchitecture(); var module = new RecordingGodotModule(); - var exception = Assert.ThrowsAsync(async () => - await architecture.InstallGodotModuleForTestAsync(module).ConfigureAwait(false)); + var exception = Assert.ThrowsAsync(() => + architecture.InstallGodotModuleForTestAsync(module)); Assert.Multiple(() => {