test(game-tests): 简化架构配置集成测试异步断言

- 简化 ArchitectureConfigIntegrationTests 中的异步异常断言包装
- 保持重复初始化场景的测试语义与验证路径不变
This commit is contained in:
gewuyou 2026-04-25 09:56:32 +08:00
parent 65cd23ff3e
commit 2a9e9f26c7

View File

@ -128,7 +128,7 @@ public class ArchitectureConfigIntegrationTests
var secondArchitecture = new ModuleOnlyArchitecture(module);
var exception =
Assert.ThrowsAsync<InvalidOperationException>(async () => await secondArchitecture.InitializeAsync().ConfigureAwait(false));
Assert.ThrowsAsync<InvalidOperationException>(() => secondArchitecture.InitializeAsync());
Assert.Multiple(() =>
{