diff --git a/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs b/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs index dbed8ac1..0920631d 100644 --- a/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs +++ b/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs @@ -133,6 +133,7 @@ public class UiRouterInteractionTests /// /// 验证弹出栈顶页面后,恢复下层页面时不会重复触发恢复逻辑。 /// + /// 表示异步测试执行过程的任务。 [Test] public async Task PopAsync_WhenPageResumesDuringShow_DoesNotCallResumeTwice() { @@ -343,7 +344,9 @@ public class UiRouterInteractionTests // The Godot page behavior resumes from OnShow(), so the router must not call OnResume() again on top. if (ResumeFromShow) + { OnResume(); + } } ///