fix(tests): 修复UI路由交互测试中的文档注释和代码块问题

- 为PopAsync测试方法添加了缺失的返回值XML文档注释
- 在Godot页面行为恢复逻辑中添加了正确的代码块括号
- 确保当ResumeFromShow为true时OnResume方法调用的条件判断正确
This commit is contained in:
GeWuYou 2026-04-17 23:16:04 +08:00
parent ef8530a379
commit f7117254f8

View File

@ -133,6 +133,7 @@ public class UiRouterInteractionTests
/// <summary> /// <summary>
/// 验证弹出栈顶页面后,恢复下层页面时不会重复触发恢复逻辑。 /// 验证弹出栈顶页面后,恢复下层页面时不会重复触发恢复逻辑。
/// </summary> /// </summary>
/// <returns>表示异步测试执行过程的任务。</returns>
[Test] [Test]
public async Task PopAsync_WhenPageResumesDuringShow_DoesNotCallResumeTwice() 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. // The Godot page behavior resumes from OnShow(), so the router must not call OnResume() again on top.
if (ResumeFromShow) if (ResumeFromShow)
{
OnResume(); OnResume();
}
} }
/// <inheritdoc /> /// <inheritdoc />